mirror of
https://github.com/Horhik/dotfiles.git
synced 2024-12-02 03:16:50 +00:00
14 lines
229 B
Bash
14 lines
229 B
Bash
|
#!/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
|