spotify: start after keyring unlock, not at hyprland startup

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-08-23 19:37:40 +01:00
parent e9ab223891
commit 888eedad39
2 changed files with 31 additions and 6 deletions

View file

@ -328,11 +328,16 @@ in
hl.exec_cmd("wl-paste --type text --watch cliphist store")
hl.exec_cmd("wl-paste --type image --watch cliphist store")
hl.exec_cmd("hyprctl setcursor Bibata-Modern-Ice 24")
-- Spotify starts hidden: the window rule below swallows it onto
-- special:music silently, so it never steals focus and SUPER+M is
-- always an instant toggle.
hl.exec_cmd(scratchpads["spotify"])
-- Scratchpad terminal, same trick: parked on special:scratch at
-- Spotify is NOT started here. It asks the Secret Service for its
-- credentials the moment it launches, which at this point is
-- before the lockscreen has been dismissed and therefore before
-- the login keyring is unlocked. Lock.qml unlocks the keyring with
-- --replace, and that kills the daemon spotify would already be
-- mid-request with, leaving it stuck half-loaded. So Lock.qml
-- launches it instead, right after the unlock succeeds. The window
-- rule below still swallows it onto special:music, and the
-- respawn-on-close rule above is unaffected.
-- Scratchpad terminal: parked on special:scratch at
-- login so SUPER+Return is always an instant toggle and the shell
-- keeps its history/cwd between peeks.
hl.exec_cmd(scratchpads["dev.fred.scratchpad"])