Initial commit
This commit is contained in:
commit
153479352c
18 changed files with 3402 additions and 0 deletions
13
bin/panel
Executable file
13
bin/panel
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue