|
@@ -1,7 +1,11 @@
|
|
|
#!/bin/sh
|
|
|
|
|
|
while true; do
|
|
|
- MUSIC="$(playerctl metadata artist) - $(playerctl metadata title)"
|
|
|
+ if playerctl metadata; then
|
|
|
+ MUSIC="$(playerctl metadata artist) - $(playerctl metadata title)"
|
|
|
+ else
|
|
|
+ MUSIC="$(mpc current)"
|
|
|
+ fi
|
|
|
MEM="$(free -h | awk '(NR==2){ print $3 }')"
|
|
|
VOL="$(pulseaudio-ctl full-status | awk '{print $1 "%" ($2 == "yes" ? " (muted)" : "")}')"
|
|
|
TEMP="$(sensors | awk '/Package/{print $4}')"
|