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
|
||||
fi
|
||||
|
||||
if which kitty; then
|
||||
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 @ >/dev/null
|
||||
kitty @ --to unix:$socket >/dev/null
|
||||
fi
|
||||
done
|
||||
|
||||
pkill -HUP conky
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue