1
0
forked from extern/nix-config

wal: Update kitty colors on theme change

Now we no longer have to worry about kitty having an inconsistent color
scheme when changing the color scheme of the rest of the environment,
which means that we can fully use kitty's window management and change
themes with pywal at the same time.
This commit is contained in:
Donovan Glover 2022-04-11 09:41:53 -04:00
parent f01915654c
commit cc9b8aed08
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -4,6 +4,12 @@ if [ -e ~/.config/bspwm/wal.sh ]; then
~/.config/bspwm/wal.sh
fi
if [ -e ~/.cache/wal/kitty ]; then
for kitty_window in `fd kitty /tmp`; do
kitty @ --to unix:$kitty_window set-colors -c -a ~/.cache/wal/kitty
done
fi
if [ -e ~/.config/dunst/wal.sh ]; then
~/.config/dunst/wal.sh
fi