pinwheel: Show ndp in the waybar music status
This commit is contained in:
1 file changed
+5
-2
@@ -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 "<span font='14' rise='-3000'></span> $OUTPUT"
|
||||
@@ -22,6 +22,9 @@ let
|
||||
"Paused")
|
||||
echo "<span font='14' rise='-3000'></span> $OUTPUT"
|
||||
;;
|
||||
"Stopped")
|
||||
echo ""
|
||||
;;
|
||||
*)
|
||||
echo "Unknown status: $STATUS"
|
||||
;;
|
||||
|
||||
Reference in new issue
Block a user