aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.config/zsh/.zshrc
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-09-20 21:26:44 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-09-20 21:26:44 +0300
commit24ac3cd2e11c114ef4c8ae1284953c8928f4a820 (patch)
treec43823a23d02dca5f57568b9167d7a37e1ad2fbf /dotfiles/.config/zsh/.zshrc
parent2b1eac8bc54dbc514e24c64143dc34ef5f1caca5 (diff)
downloadswayrice-24ac3cd2e11c114ef4c8ae1284953c8928f4a820.tar.gz
swayrice-24ac3cd2e11c114ef4c8ae1284953c8928f4a820.zip
A way to change colors dynamically with foot
Also some cleanup
Diffstat (limited to 'dotfiles/.config/zsh/.zshrc')
-rw-r--r--dotfiles/.config/zsh/.zshrc6
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