diff --git a/.config/scripts/toggle_theme.sh b/.config/scripts/toggle_theme.sh new file mode 100755 index 0000000..926d5a7 --- /dev/null +++ b/.config/scripts/toggle_theme.sh @@ -0,0 +1,19 @@ +#! /usr/bin/env bash + +# kitty + +PATH_THEME="$XDG_CONFIG_HOME/kitty/themes" + +case "$1" in + light) + cp "$PATH_THEME/onehalf-light.conf" "$PATH_THEME/current.conf" + ;; + dark) + cp "$PATH_THEME/onehalf-dark.conf" "$PATH_THEME/current.conf" + ;; +esac + +kitty @ set-colors --all "$PATH_THEME/current.conf" > /dev/null +tput sgr0 +tput op +