radio aliases
This commit is contained in:
parent
3cb60aaf32
commit
72adf2a2ff
@ -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}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user