From 3bf723fc467d5e9e628f22f409add698d3b28e63 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Fri, 26 Dec 2025 20:16:42 +0100 Subject: [PATCH] feat: make `music` part only update when `rmpc` sends a signal to `waybar` --- modules/home/waybar/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/home/waybar/default.nix b/modules/home/waybar/default.nix index dec5655..6f2bfbf 100644 --- a/modules/home/waybar/default.nix +++ b/modules/home/waybar/default.nix @@ -109,11 +109,12 @@ }, "custom/music": { - "interval": 5, + "interval": "once", "return-type": "json", "exec": "~/.local/bin/waybar-music", "on-click": "playerctl play-pause", - "escape": true + "escape": true, + "signal": 2 }, "custom/devices": {