Merge pull request #989 from mstraube/song-vlc
song: add support for vlc
This commit is contained in:
commit
5f8d6e06cc
5
neofetch
5
neofetch
|
@ -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=" "};
|
||||||
|
|
Reference in New Issue