diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2022-09-20 21:26:44 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2022-09-20 21:26:44 +0300 |
commit | 24ac3cd2e11c114ef4c8ae1284953c8928f4a820 (patch) | |
tree | c43823a23d02dca5f57568b9167d7a37e1ad2fbf /dotfiles/.config/zsh | |
parent | 2b1eac8bc54dbc514e24c64143dc34ef5f1caca5 (diff) | |
download | swayrice-24ac3cd2e11c114ef4c8ae1284953c8928f4a820.tar.gz swayrice-24ac3cd2e11c114ef4c8ae1284953c8928f4a820.zip |
A way to change colors dynamically with foot
Also some cleanup
Diffstat (limited to 'dotfiles/.config/zsh')
-rw-r--r-- | dotfiles/.config/zsh/.zshrc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dotfiles/.config/zsh/.zshrc b/dotfiles/.config/zsh/.zshrc index a7f3000..aa1bc69 100644 --- a/dotfiles/.config/zsh/.zshrc +++ b/dotfiles/.config/zsh/.zshrc @@ -69,7 +69,11 @@ zle -N zle-keymap-select [ -f "$HOME/.config/zsh/shortcuts" ] && . "$HOME/.config/zsh/shortcuts" -[ -f "$HOME/.cache/colorscheme" ] && trap "source $HOME/.cache/colorscheme" DEBUG +if [ -f "$HOME/.cache/colorscheme" ]; then + trap "source $HOME/.cache/colorscheme && shtheme ultramar-\$COLORSCHEME" SIGUSR1 + source $HOME/.cache/colorscheme + shtheme ultramar-$COLORSCHEME +fi if [ -f /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ] then |