]> git.phdru.name Git - audio-cdr-video.git/blobdiff - audio/players/action
Refactor(audacious): Use `audtool`
[audio-cdr-video.git] / audio / players / action
index d8bbd159d4885ccb21eec8dc569901aa9616fd53..6d234bd48ff54fe24b30c52e62e26c77b9303ff1 100755 (executable)
@@ -19,20 +19,20 @@ elif pgrep deadbeef >/dev/null; then
    elif [ "$action" = next ]; then
       exec deadbeef --next
    elif [ "$action" = pause ]; then
-      exec deadbeef --toggle-pause
+      exec deadbeef --play-pause
    elif [ "$action" = stop ]; then
       exec deadbeef --stop
    fi
 
 elif pgrep audacious >/dev/null; then
    if [ "$action" = prev ]; then
-      exec audacious --rew
+      exec audtool --playlist-reverse
    elif [ "$action" = next ]; then
-      exec audacious --fwd
+      exec audtool --playlist-advance
    elif [ "$action" = pause ]; then
-      exec audacious --play-pause
+      exec audtool --playback-playpause
    elif [ "$action" = stop ]; then
-      exec audacious --stop
+      exec audtool --playback-stop
    fi
 
 else