AppTitle
Spicetify.AppTitle reads and overrides the default window title, which Spotify shows when no track is playing.
interface Subscription { cancel(): void;}
namespace AppTitle { function set(title: string): Promise<Subscription>; function get(): Promise<string>; function reset(): Promise<void>; function sub(callback: (title: string) => void): Subscription;}setoverrides the default title and keeps reapplying it until you callresetorcancelon the subscription it returns. Each call replaces the previous override. A playing track still shows its own title.getreturns the default title, not the title of the playing track.resetstops the override and restores Spotify’s default title.subcallscallbackwhen the default title changes. Callcancelon the result to stop.
const override = await Spicetify.AppTitle.set('Focus mode');override.cancel();await Spicetify.AppTitle.reset();