Allow for local kitty colour scheme

This commit is contained in:
Talia 2023-04-06 14:38:33 +02:00
parent bd2a8e150b
commit 0573ee880a

View file

@ -36,7 +36,8 @@ fi
for socket in $(find /tmp/ -maxdepth 1 -name "kitty-$USER-*") for socket in $(find /tmp/ -maxdepth 1 -name "kitty-$USER-*")
do do
if which kitty > /dev/null; then if which kitty > /dev/null; then
kitty @ --to unix:$socket set-colors --configured $HOME/darkrc/kitty_$theme.conf >/dev/null theme=$(cat $HOME/.config/kitty/kitty.conf | sed -n '/^include/p' | sed -n -e 's/^include //' -e 's|$HOME|'"$HOME"'|' -e '/kitty_.*.conf$/p')
kitty @ --to unix:$socket set-colors --configured $theme >/dev/null
fi fi
done done