|
|
@ -1,4 +1,19 @@ |
|
|
|
#! /usr/bin/env bash |
|
|
|
#!/bin/zsh |
|
|
|
|
|
|
|
#x11 |
|
|
|
|
|
|
|
PATH_THEME="$XDG_CONFIG_HOME/X11/colors" |
|
|
|
|
|
|
|
case "$1" in |
|
|
|
light) |
|
|
|
cp "$PATH_THEME/onehalf-light" "$PATH_THEME/current" |
|
|
|
;; |
|
|
|
dark) |
|
|
|
cp "$PATH_THEME/onehalf-dark" "$PATH_THEME/current" |
|
|
|
;; |
|
|
|
esac |
|
|
|
|
|
|
|
xrdb "$PATH_THEME/current" |
|
|
|
|
|
|
|
# kitty |
|
|
|
|
|
|
@ -13,7 +28,26 @@ case "$1" in |
|
|
|
;; |
|
|
|
esac |
|
|
|
|
|
|
|
kitty @ set-colors --all "$PATH_THEME/current.conf" > /dev/null |
|
|
|
kitty @ set-colors --all --configured "$PATH_THEME/current.conf" > /dev/null |
|
|
|
tput sgr0 |
|
|
|
tput op |
|
|
|
|
|
|
|
# zsh |
|
|
|
# highlighting needs to be changed |
|
|
|
|
|
|
|
PATH_THEME="$XDG_CONFIG_HOME/zsh" |
|
|
|
|
|
|
|
case "$1" in |
|
|
|
light) |
|
|
|
cp "$PATH_THEME/theme_light" "$PATH_THEME/theme_current" |
|
|
|
;; |
|
|
|
dark) |
|
|
|
cp "$PATH_THEME/theme_dark" "$PATH_THEME/theme_current" |
|
|
|
;; |
|
|
|
esac |
|
|
|
|
|
|
|
source $PATH_THEME/theme_current |
|
|
|
# sourcing not enough to change autosuggestion color |
|
|
|
# exec updates current window and newly created, |
|
|
|
# but not other currently open terminals |
|
|
|
exec zsh |