Browse Source

Add playerctl metadata to dwm status

Frans Bergman 3 years ago
parent
commit
e4afd75d9f
1 changed files with 2 additions and 1 deletions
  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