player aliases

This commit is contained in:
thek4n 2026-06-10 22:16:05 +03:00
parent dc55906ed4
commit cbe795ed2d

View File

@ -17,8 +17,8 @@ Commands:
radio, r <CHANNEL> Switch to a radio station radio, r <CHANNEL> Switch to a radio station
local, music [PATH] Switch to local music playlist (default: ~/Music) local, music [PATH] Switch to local music playlist (default: ~/Music)
next, n Next track next, n Next track
prev, p Previous track prev, last, l Previous track
pause, stop, toggle, s Toggle pause pause, stop, toggle, s, p Toggle pause
help Show this message help Show this message
Radio Channels: Radio Channels:
@ -101,11 +101,11 @@ handle_control() {
send_cmd '["playlist-next"]' send_cmd '["playlist-next"]'
echo "➡️ Next" echo "➡️ Next"
;; ;;
prev|p) prev|last|l)
send_cmd '["playlist-prev"]' send_cmd '["playlist-prev"]'
echo "⬅️ Prev" echo "⬅️ Prev"
;; ;;
pause|stop|toggle|t|s) pause|stop|toggle|t|s|p)
send_cmd '["cycle", "pause"]' send_cmd '["cycle", "pause"]'
echo "⏯️ Pause toggled" echo "⏯️ Pause toggled"
;; ;;
@ -126,7 +126,7 @@ case "${ACTION}" in
local|music|m) local|music|m)
play_local_playlist "${@}" play_local_playlist "${@}"
;; ;;
next|n|prev|p|pause|stop|toggle|t|s) next|n|prev|p|pause|stop|toggle|t|s|last)
handle_control "${ACTION}" handle_control "${ACTION}"
;; ;;
help|"") help|"")