From a46dc6e95e4875a6f5d424dfc49dc0434c8e5853 Mon Sep 17 00:00:00 2001 From: rope Date: Wed, 19 Aug 2026 13:24:49 +0100 Subject: [PATCH] quickshell: stop the vinyl animation when the media popup is closed --- settings/quickshell.nix | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/settings/quickshell.nix b/settings/quickshell.nix index 39be0dc..45b8c63 100644 --- a/settings/quickshell.nix +++ b/settings/quickshell.nix @@ -6304,14 +6304,30 @@ in source: mediaCard.modelData.trackArtUrl } - // paused (not stopped) so resuming - // picks up at the current angle + // running is gated on the popup, NOT + // left true: a paused animation is + // still a *running* one to Qt's + // animation driver, which holds the + // window in continuous-update mode — + // a commit every vblank, drawing + // nothing. The bar's surface is the + // whole screen, so each of those + // commits makes Hyprland recomposite + // the entire output, which halved + // framerates in games. Once + // spotify-player became a daemon an + // MPRIS player is always present, so + // this card — and this animation — + // never went away. + // paused (not stopped) still applies + // while the popup is open, so play/ + // pause resumes at the current angle // instead of snapping back to 0. NumberAnimation on rotation { from: 0; to: 360 duration: 8000 loops: Animation.Infinite - running: true + running: calPopup.open paused: !vinyl.spinning } }