radio aliases

This commit is contained in:
thek4n 2026-05-23 23:14:32 +03:00
parent 3cb60aaf32
commit 72adf2a2ff

View File

@ -14,7 +14,7 @@ usage() {
Usage: ${PROG} <command> [args] Usage: ${PROG} <command> [args]
Commands: Commands:
radio <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, p Previous track
@ -120,11 +120,11 @@ ACTION="${1:-}"
shift 2>/dev/null || true shift 2>/dev/null || true
case "${ACTION}" in case "${ACTION}" in
radio|tune) radio|tune|r)
tune_radio "$@" tune_radio "${@}"
;; ;;
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)
handle_control "${ACTION}" handle_control "${ACTION}"