14 lines
257 B
Plaintext
14 lines
257 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
while (true); do
|
||
|
if [ "$(mpc | wc -l)" -eq "3" ]; then
|
||
|
SONG=$(mpc | head -1)
|
||
|
if [ "$(mpc | grep '\[paused\]' | wc -l)" -eq "1" ]; then
|
||
|
SONG="⏸ $SONG"
|
||
|
fi
|
||
|
fi
|
||
|
|
||
|
xsetroot -name " $SONG | $(date '+%Y-%m-%d %H:%M:%S') "
|
||
|
sleep 0.3s;
|
||
|
done
|