Compare commits

...
4 Commits
Author SHA1 Message Date
Alexander Heldt 20489e7342 Update dagbok flake input 2026-11-09 13:17:21 +01:00
Alexander Heldt db875fed40 Update ndp flake input 2026-11-09 13:14:27 +01:00
Alexander Heldt b63c2ee12f pinwheel: Show ndp in the waybar music status 2026-11-09 08:42:40 +01:00
Alexander Heldt bca53976af Update ndp flake input 2026-11-09 07:54:36 +01:00
2 changed files with 13 additions and 10 deletions

No files matched your search

Generated
+8 -8
View File
@@ -81,11 +81,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1794057429, "lastModified": 1794226432,
"narHash": "sha256-9K4GeNXNlts6z9HBuVCI+Fv46cjwzxKO3+AczBguuvs=", "narHash": "sha256-3CDXYRViptwGf1rRiSzqAMKPC0j2Rf3I7wPbpq7vT7s=",
"ref": "main", "ref": "main",
"rev": "6b9ad35b9e5f1e44eb24efaf2717eaee31cf75f0", "rev": "f039b49ac60e070458fdb1b258dbb237e6984711",
"revCount": 39, "revCount": 42,
"type": "git", "type": "git",
"url": "ssh://gitea@git.ppp.pm:1122/alex/dagbok.git" "url": "ssh://gitea@git.ppp.pm:1122/alex/dagbok.git"
}, },
@@ -711,11 +711,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1794162363, "lastModified": 1794225659,
"narHash": "sha256-FCj2c430vRO/HDRuiywRAPG4VgNaT0OV5RbW2GCx/Go=", "narHash": "sha256-dr9VmlZa9Cwd7EbKFaYxjch4Px4AG0O6tv9a2dJusLo=",
"ref": "main", "ref": "main",
"rev": "75ad27d05b2239922c939d6124dde86b8bfc96bb", "rev": "a62467743b50203188a079c9e3267ff676478877",
"revCount": 6, "revCount": 12,
"type": "git", "type": "git",
"url": "ssh://gitea@git.ppp.pm:1122/alex/ndp.git" "url": "ssh://gitea@git.ppp.pm:1122/alex/ndp.git"
}, },
+5 -2
View File
@@ -8,13 +8,13 @@ let
hyprlandEnabled = config.mod.hyprland.enable; hyprlandEnabled = config.mod.hyprland.enable;
music-status = pkgs.writeShellScript "music-status" '' 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 if [ "$STATUS" = "No players found" ]; then
echo "" echo ""
else else
FORMAT="{{markup_escape(xesam:title)}} - {{markup_escape(xesam:artist)}}" 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 case "$STATUS" in
"Playing") "Playing")
echo "<span font='14' rise='-3000'></span> $OUTPUT" echo "<span font='14' rise='-3000'></span> $OUTPUT"
@@ -22,6 +22,9 @@ let
"Paused") "Paused")
echo "<span font='14' rise='-3000'></span> $OUTPUT" echo "<span font='14' rise='-3000'></span> $OUTPUT"
;; ;;
"Stopped")
echo ""
;;
*) *)
echo "Unknown status: $STATUS" echo "Unknown status: $STATUS"
;; ;;