Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
20489e7342 | ||
|
|
db875fed40 | ||
|
|
b63c2ee12f | ||
|
|
bca53976af |
No files matched your search
Generated
+8
-8
@@ -81,11 +81,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1794057429,
|
||||
"narHash": "sha256-9K4GeNXNlts6z9HBuVCI+Fv46cjwzxKO3+AczBguuvs=",
|
||||
"lastModified": 1794226432,
|
||||
"narHash": "sha256-3CDXYRViptwGf1rRiSzqAMKPC0j2Rf3I7wPbpq7vT7s=",
|
||||
"ref": "main",
|
||||
"rev": "6b9ad35b9e5f1e44eb24efaf2717eaee31cf75f0",
|
||||
"revCount": 39,
|
||||
"rev": "f039b49ac60e070458fdb1b258dbb237e6984711",
|
||||
"revCount": 42,
|
||||
"type": "git",
|
||||
"url": "ssh://gitea@git.ppp.pm:1122/alex/dagbok.git"
|
||||
},
|
||||
@@ -711,11 +711,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1794162363,
|
||||
"narHash": "sha256-FCj2c430vRO/HDRuiywRAPG4VgNaT0OV5RbW2GCx/Go=",
|
||||
"lastModified": 1794225659,
|
||||
"narHash": "sha256-dr9VmlZa9Cwd7EbKFaYxjch4Px4AG0O6tv9a2dJusLo=",
|
||||
"ref": "main",
|
||||
"rev": "75ad27d05b2239922c939d6124dde86b8bfc96bb",
|
||||
"revCount": 6,
|
||||
"rev": "a62467743b50203188a079c9e3267ff676478877",
|
||||
"revCount": 12,
|
||||
"type": "git",
|
||||
"url": "ssh://gitea@git.ppp.pm:1122/alex/ndp.git"
|
||||
},
|
||||
|
||||
@@ -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