From 53ce5fae9d5241ff985a92507862edea2bd7db12 Mon Sep 17 00:00:00 2001 From: Marc Date: Sun, 23 Aug 2020 08:37:46 +0200 Subject: [PATCH] added theme toggler --- .config/scripts/toggle_theme.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 .config/scripts/toggle_theme.sh 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 +