]> git.plutz.net Git - serve0/blobdiff - actions/playctl.sh
switch to mplayer2 again
[serve0] / actions / playctl.sh
index 6944771f7cea4ac716fd7ef8efbc81ebd6cbd7e2..1fd907b4e7730993916e5a6b38e177aca4f06b23 100755 (executable)
@@ -39,7 +39,7 @@ elif [ -n "${_POST[seek]+x}" ]; then
 elif [ -n "${_POST[pasink]+x}" ]; then
   stream="$(\
     pactl list sink-inputs \
-    | sed -rn '/Sink Input #/{:X;N;/application.name =/!bX;s;Sink Input #([0-9]+).+application.name = "MPlayer";\1;p}' \
+    | sed -rn '/Sink Input #/{:X;N;/application.name =/!bX;s;Sink Input #([0-9]+).+application.name = "(MPlayer|mplayer2)";\1;p}' \
   )"
   pactl move-sink-input "$stream" "${_POST[pasink]}"
 elif [ -n "${_POST[osd]+x}" ]; then