From 30e19d6970e2bcab0df4b0d122f3ea8f0f286c78 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Wed, 10 May 2023 11:19:33 +0200 Subject: [PATCH] Support rofi|menu commands to start mpd.rofi.sh --- mpd.controller.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mpd.controller.sh b/mpd.controller.sh index 6efdd39..e8de418 100755 --- a/mpd.controller.sh +++ b/mpd.controller.sh @@ -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' "---"