Update kitty to use unix domain sockets

This commit is contained in:
Talia 2020-09-29 18:51:02 +02:00
parent c2fb46bcee
commit d7fd9dc98f
2 changed files with 14 additions and 10 deletions

View File

@ -23,13 +23,16 @@ else
theme=light
fi
if which kitty; then
cat $HOME/darkrc/kitty_$theme.conf |\
grep '^[[:alpha:]]' |\
sed -s 's/ \+/=/' |\
sed -s 's/^.*$/set-colors --all \0/' |\
sort |\
kitty @ >/dev/null
fi
for socket in $(find /tmp/ -maxdepth 1 -name "kitty-$USER-*")
do
if which kitty > /dev/null; then
cat $HOME/darkrc/kitty_$theme.conf |\
grep '^[[:alpha:]]' |\
sed -s 's/ \+/=/' |\
sed -s 's/^.*$/set-colors --all \0/' |\
sort |\
kitty @ --to unix:$socket >/dev/null
fi
done
pkill -HUP conky

View File

@ -1,3 +1,6 @@
allow_remote_control yes
listen_on unix:/tmp/kitty-${USER}-{kitty_pid}
font_family Hack
font_size 14
@ -9,5 +12,3 @@ background_opacity 1.0
window_margin_width 0
window_padding_width 0
allow_remote_control yes