dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 3b8cbf77c857bf8bf34e0f1ca9899c8d4c542be5
parent 511dfdff7d73b96fe1f8a0f652f5d15ffd197601
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Sun,  6 Dec 2020 23:09:58 +0100

set-theme: lowercase variable

Former-commit-id: 49a844f06d33185ed6cf4537b65e4a3f56c91961
Diffstat:
Mscripts/set-theme | 20++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/scripts/set-theme b/scripts/set-theme @@ -63,16 +63,16 @@ set_tmux() { [ $# -eq 1 ] || { printf "Arguments: dark, light\n" && exit 1; } case "$1" in dark) - THEME="dark";; + theme="dark";; light) - THEME="light";; + theme="light";; toggle) - if [ -f "$HOME/.config/dark-theme" ]; then THEME="light" - else THEME="dark"; fi;; + if [ -f "$HOME/.config/dark-theme" ]; then theme="light" + else theme="dark"; fi;; *) printf "Arguments: dark, light\n" && exit 1;; esac -case "$THEME" in +case "$theme" in light) rm "$HOME/.config/dark-theme";; dark) touch "$HOME/.config/dark-theme";; esac @@ -80,11 +80,11 @@ esac os=$(uname -s | tr '[:upper:]' '[:lower:]') case "$os" in darwin*) - set_macos "$THEME" - set_iterm2 "$THEME" + set_macos "$theme" + set_iterm2 "$theme" ;; esac -set_terminal_and_wallpaper "$THEME" -set_p10k "$THEME" -set_tmux "$THEME" +set_terminal_and_wallpaper "$theme" +set_p10k "$theme" +set_tmux "$theme"