Explorar o código

Add playerctl metadata to dwm status

Frans Bergman %!s(int64=5) %!d(string=hai) anos
pai
achega
e4afd75d9f
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      .scripts/dwm_status.sh

+ 2 - 1
.scripts/dwm_status.sh

@@ -1,10 +1,11 @@
 #!/bin/sh
 
 while true; do
+    MUSIC="$(playerctl metadata artist) - $(playerctl metadata title)"
     MEM="$(free -h | awk '(NR==2){ print $3 }')"
     VOL="$(amixer get Master | awk -F'[][]' 'END{ print $4":"$2 }')"
     TEMP="$(sensors | awk '/Package/{print $4}')"
     DATE="$(date)"
-    xsetroot -name " $VOL | $MEM | $TEMP | $DATE"
+    xsetroot -name " $MUSIC | $VOL | $MEM | $TEMP | $DATE"
     sleep 5
 done