summaryrefslogtreecommitdiff
path: root/rifle.conf
diff options
context:
space:
mode:
authorAche <ache@ache.one>2016-05-18 20:26:05 +0200
committerAche <ache@ache.one>2016-05-18 20:26:05 +0200
commit0adaa7b88291768302d8d9deb27441743ad7581c (patch)
treecfebb197b3fdc9c62061d1a99d34539587d35fde /rifle.conf
parentCorrection (diff)
moc -> mpd
Diffstat (limited to 'rifle.conf')
-rw-r--r--rifle.conf1
1 files changed, 1 insertions, 0 deletions
diff --git a/rifle.conf b/rifle.conf
index da07796..1d7c71a 100644
--- a/rifle.conf
+++ b/rifle.conf
@@ -116,6 +116,7 @@ ext php = php -- "$1"
# Video/Audio with a GUI
#-------------------------------------------
+mime ^audio, has mpd, X, flag f = if ! mpc ; then mpd; fi; mpc add "file://$1"; mpc play
mime ^audio, has moc, X, flag f = infoMOC=`mocp -i`; if [ -n "$infoMOC" ]; then if [ "${infoMOC:7:4}" = "PLAY" ] ; then mocp -q "$@"; else mocp -l "$@";mocp -c; mocp -l "$@"; fi else mocp -S; mocp -l "$@";mocp -c;mocp -l "$@"; fi;
mime ^audio, has vlc, X, flag f = vlc --key-quit "Ctrl-v" --started-from-file -- "$@"
mime ^video, has vlc, X, flag f = cvlc --key-quit "Ctrl-v" --started-from-file -- "$@"