clean up scripts
This commit is contained in:
13
.config/polybar/scripts/player-moc.sh
Normal file
13
.config/polybar/scripts/player-moc.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$(mocp -Q %state)" != "STOP" ];then
|
||||
SONG=$(mocp -Q %song)
|
||||
|
||||
if [ -n "$SONG" ]; then
|
||||
echo "$SONG - $(mocp -Q %album)"
|
||||
else
|
||||
basename "$(mocp -Q %file)"
|
||||
fi
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
Reference in New Issue
Block a user