Add MOC support to getsong
This commit is contained in:
parent
5e6cc26b93
commit
a1c9452bda
1 changed files with 3 additions and 0 deletions
3
fetch
3
fetch
|
@ -1107,6 +1107,9 @@ getsong () {
|
|||
song=${song/tag title/-}
|
||||
song=${song//[[:space:]]/ }
|
||||
|
||||
elif type -p mocp >/dev/null 2>&1; then
|
||||
song="$(mocp -Q "%artist - %song")"
|
||||
|
||||
else
|
||||
song="Unknown"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue