From 068ee54abb45deb74d6b58df972878c720cc18e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Tue, 28 Jul 2020 16:43:57 +0200 Subject: [PATCH] do not apply current theme when quiting dwm themes menu --- bspwm/.config/bspwm/commands.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bspwm/.config/bspwm/commands.sh b/bspwm/.config/bspwm/commands.sh index 1ea64af..152d1b7 100644 --- a/bspwm/.config/bspwm/commands.sh +++ b/bspwm/.config/bspwm/commands.sh @@ -33,7 +33,9 @@ if [ "$CMD" = theme -a "$1" = --next ]; then fi echo "THEME=${THEME}" > "${CURRENT_THEME_PATH}" elif [ "$CMD" = theme ]; then - if [ -e "${THEMES_PATH}/$1-theme.sh" ]; then + if [ "$1" = "" ]; then + exit + elif [ -e "${THEMES_PATH}/$1-theme.sh" ]; then THEME="$1" else THEME="${DEFAULT_THEME}"