song: Added mpc_args to specify arguments for mpc. Closes #1033
This commit is contained in:
parent
e7306982e9
commit
b3e6b7e818
1 changed files with 7 additions and 1 deletions
8
neofetch
8
neofetch
|
@ -474,6 +474,12 @@ song_format="%artist% - %album% - %title%"
|
||||||
# off: 'Song: The Fratellis - Costello Music - Chelsea Dagger'
|
# off: 'Song: The Fratellis - Costello Music - Chelsea Dagger'
|
||||||
song_shorthand="off"
|
song_shorthand="off"
|
||||||
|
|
||||||
|
# 'mpc' arguments (specify a host, password etc).
|
||||||
|
#
|
||||||
|
# Default: ''
|
||||||
|
# Example: mpc_args=(-h HOST -P PASSWORD)
|
||||||
|
mpc_args=()
|
||||||
|
|
||||||
|
|
||||||
# Text Colors
|
# Text Colors
|
||||||
|
|
||||||
|
@ -2348,7 +2354,7 @@ get_song() {
|
||||||
}
|
}
|
||||||
|
|
||||||
case "${player/*\/}" in
|
case "${player/*\/}" in
|
||||||
"mpd"* | "mopidy"*) song="$(mpc -f '%artist% \n %album% \n %title%' current)" ;;
|
"mpd"* | "mopidy"*) song="$(mpc -f '%artist%\n%album%\n%title%' current "${mpc_args[@]}")" ;;
|
||||||
"mocp"*) song="$(mocp -Q '%artist \n %album \n %song')" ;;
|
"mocp"*) song="$(mocp -Q '%artist \n %album \n %song')" ;;
|
||||||
"google play"*) song="$(gpmdp-remote current)" ;;
|
"google play"*) song="$(gpmdp-remote current)" ;;
|
||||||
"rhythmbox"*) song="$(rhythmbox-client --print-playing-format '%ta \n %at \n %tt')" ;;
|
"rhythmbox"*) song="$(rhythmbox-client --print-playing-format '%ta \n %at \n %tt')" ;;
|
||||||
|
|
Loading…
Reference in a new issue