Support rofi|menu commands to start mpd.rofi.sh

This commit is contained in:
gardouille 2023-05-10 11:19:33 +02:00
parent 9288ca4228
commit 30e19d6970
Signed by: gardouille
GPG Key ID: E759BAA22501AF32

View File

@ -54,6 +54,7 @@ OPTIONS:
* previous
* random
* party, partymode, randomparty
* rofi, menu
-d,--debug
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."
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
printf '%b\n' "${RED}Invalid MPD|MPC command: ${USER_MULTIMEDIA_COMMAND}${RESET}"
printf '%b\n' "---"