song: add support for vlc

This commit is contained in:
Michael Straube 2018-05-13 11:15:24 +02:00
parent 01ec03720b
commit a62c3d2029

View file

@ -436,6 +436,7 @@ disk_subtitle="mount"
# xmms2d # xmms2d
# yarock # yarock
# sayonara # sayonara
# vlc
music_player="auto" music_player="auto"
# Format to display song information. # Format to display song information.
@ -2392,7 +2393,8 @@ get_song() {
-e "tomahawk" \ -e "tomahawk" \
-e "xmms2d" \ -e "xmms2d" \
-e "yarock" \ -e "yarock" \
-e "sayonara")" -e "sayonara" \
-e "vlc")"
[[ "$music_player" && "$music_player" != "auto" ]] && \ [[ "$music_player" && "$music_player" != "auto" ]] && \
player="$music_player" player="$music_player"
@ -2429,6 +2431,7 @@ get_song() {
"elisa"*) get_song_dbus "elisa" ;; "elisa"*) get_song_dbus "elisa" ;;
"sayonara"*) get_song_dbus "sayonara" ;; "sayonara"*) get_song_dbus "sayonara" ;;
"audacious"*) get_song_dbus "audacious" ;; "audacious"*) get_song_dbus "audacious" ;;
"vlc"*) get_song_dbus "vlc" ;;
"cmus"*) "cmus"*)
song="$(cmus-remote -Q | awk 'BEGIN { ORS=" "}; song="$(cmus-remote -Q | awk 'BEGIN { ORS=" "};