Parcourir la source

Add playerctl metadata to dwm status

Frans Bergman il y a 5 ans
Parent
commit
e4afd75d9f
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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