spotify: drop spotify_player for the normal client in the music scratchpad

This commit is contained in:
rope 2026-08-19 17:52:39 +01:00
parent 9447413fa1
commit 8df52a3686
2 changed files with 16 additions and 35 deletions

View file

@ -509,8 +509,8 @@ let
# No instance on the bus, or the action is gone. Restarting the daemon
# fixes it but takes every open terminal with it, so that is only on the
# table when there is nothing to lose. The class test has to cover the
# --class overrides from settings/hyprland.nix (dev.fred.scratchpad,
# dev.fred.spotify) — those windows are the same process.
# --class override from settings/hyprland.nix (dev.fred.scratchpad) —
# that window is the same process.
if ${pkgs.hyprland}/bin/hyprctl -j clients 2>/dev/null \
| ${pkgs.jq}/bin/jq -e 'any(.[].class; test("ghostty|^dev\\.fred\\."))' >/dev/null 2>&1; then
echo "ghostty reload-config failed; open terminals keep the old theme"