mirror of
https://github.com/Horhik/dotfiles.git
synced 2024-11-08 01:43:13 +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
|