From b63c2ee12ff99ee2d2b9c43f08fe979c74778f66 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Mon, 9 Nov 2026 08:42:40 +0100 Subject: [PATCH] pinwheel: Show ndp in the `waybar` music status --- hosts/pinwheel/modules/waybar/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hosts/pinwheel/modules/waybar/default.nix b/hosts/pinwheel/modules/waybar/default.nix index 1dd6b36..e232177 100644 --- a/hosts/pinwheel/modules/waybar/default.nix +++ b/hosts/pinwheel/modules/waybar/default.nix @@ -8,13 +8,13 @@ let hyprlandEnabled = config.mod.hyprland.enable; music-status = pkgs.writeShellScript "music-status" '' - STATUS=$(${pkgs.playerctl}/bin/playerctl -p naviterm,spotify status 2>&1) + STATUS=$(${pkgs.playerctl}/bin/playerctl -p ndp,naviterm,spotify status 2>&1) if [ "$STATUS" = "No players found" ]; then echo "" else FORMAT="{{markup_escape(xesam:title)}} - {{markup_escape(xesam:artist)}}" - OUTPUT=$(${pkgs.playerctl}/bin/playerctl -p naviterm,spotify metadata --format "$FORMAT") + OUTPUT=$(${pkgs.playerctl}/bin/playerctl -p ndp,naviterm,spotify metadata --format "$FORMAT") case "$STATUS" in "Playing") echo " $OUTPUT" @@ -22,6 +22,9 @@ let "Paused") echo " $OUTPUT" ;; + "Stopped") + echo "" + ;; *) echo "Unknown status: $STATUS" ;;