Merge pull request #989 from mstraube/song-vlc

song: add support for vlc
This commit is contained in:
Dylan Araps 2018-05-14 05:15:48 +00:00 committed by GitHub
commit 5f8d6e06cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

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=" "};