Support rofi|menu commands to start mpd.rofi.sh
This commit is contained in:
parent
9288ca4228
commit
30e19d6970
|
@ -54,6 +54,7 @@ OPTIONS :
|
||||||
* previous
|
* previous
|
||||||
* random
|
* random
|
||||||
* party, partymode, randomparty
|
* party, partymode, randomparty
|
||||||
|
* rofi, menu
|
||||||
|
|
||||||
-d,--debug
|
-d,--debug
|
||||||
Enable debug messages.
|
Enable debug messages.
|
||||||
|
@ -132,6 +133,11 @@ Use ${RED}MPC${COLOR_DEBUG} client for ${USER_MULTIMEDIA_COMMAND} command."
|
||||||
Use multiple ${RED}MPC${COLOR_DEBUG} commands for ${USER_MULTIMEDIA_COMMAND} action."
|
Use multiple ${RED}MPC${COLOR_DEBUG} commands for ${USER_MULTIMEDIA_COMMAND} action."
|
||||||
MPD_COMMAND=$(mpc --quiet clear; mpc --quiet random on; mpc --quiet add /; mpc --quiet play)
|
MPD_COMMAND=$(mpc --quiet clear; mpc --quiet random on; mpc --quiet add /; mpc --quiet play)
|
||||||
;;
|
;;
|
||||||
|
rofi|controller|menu ) ## Start mpd-rofi
|
||||||
|
debug_message "defined − \
|
||||||
|
Start ${RED}mpd.rofi.sh${COLOR_DEBUG} script according to ${USER_MULTIMEDIA_COMMAND} command."
|
||||||
|
MPD_COMMAND=$(~/bin/mpd.rofi.sh)
|
||||||
|
;;
|
||||||
* ) ## unknow option
|
* ) ## unknow option
|
||||||
printf '%b\n' "${RED}Invalid MPD|MPC command: ${USER_MULTIMEDIA_COMMAND}${RESET}"
|
printf '%b\n' "${RED}Invalid MPD|MPC command: ${USER_MULTIMEDIA_COMMAND}${RESET}"
|
||||||
printf '%b\n' "---"
|
printf '%b\n' "---"
|
||||||
|
|
Loading…
Reference in New Issue