do not apply current theme when quiting dwm themes menu

This commit is contained in:
Łukasz Pankowski 2020-07-28 16:43:57 +02:00
parent f54c3cb735
commit 068ee54abb

View File

@ -33,7 +33,9 @@ if [ "$CMD" = theme -a "$1" = --next ]; then
fi fi
echo "THEME=${THEME}" > "${CURRENT_THEME_PATH}" echo "THEME=${THEME}" > "${CURRENT_THEME_PATH}"
elif [ "$CMD" = theme ]; then 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" THEME="$1"
else else
THEME="${DEFAULT_THEME}" THEME="${DEFAULT_THEME}"