mirror of
https://github.com/Horhik/dotfiles.git
synced 2024-11-23 16:41:31 +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
|