Update kitty to use unix domain sockets
This commit is contained in:
parent
c2fb46bcee
commit
d7fd9dc98f
2 changed files with 14 additions and 10 deletions
|
@ -23,13 +23,16 @@ else
|
||||||
theme=light
|
theme=light
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if which kitty; then
|
for socket in $(find /tmp/ -maxdepth 1 -name "kitty-$USER-*")
|
||||||
cat $HOME/darkrc/kitty_$theme.conf |\
|
do
|
||||||
grep '^[[:alpha:]]' |\
|
if which kitty > /dev/null; then
|
||||||
sed -s 's/ \+/=/' |\
|
cat $HOME/darkrc/kitty_$theme.conf |\
|
||||||
sed -s 's/^.*$/set-colors --all \0/' |\
|
grep '^[[:alpha:]]' |\
|
||||||
sort |\
|
sed -s 's/ \+/=/' |\
|
||||||
kitty @ >/dev/null
|
sed -s 's/^.*$/set-colors --all \0/' |\
|
||||||
fi
|
sort |\
|
||||||
|
kitty @ --to unix:$socket >/dev/null
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
pkill -HUP conky
|
pkill -HUP conky
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
allow_remote_control yes
|
||||||
|
listen_on unix:/tmp/kitty-${USER}-{kitty_pid}
|
||||||
|
|
||||||
font_family Hack
|
font_family Hack
|
||||||
font_size 14
|
font_size 14
|
||||||
|
|
||||||
|
@ -9,5 +12,3 @@ background_opacity 1.0
|
||||||
|
|
||||||
window_margin_width 0
|
window_margin_width 0
|
||||||
window_padding_width 0
|
window_padding_width 0
|
||||||
|
|
||||||
allow_remote_control yes
|
|
||||||
|
|
Loading…
Reference in a new issue