aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Backer Dirks <tobias@candosa.com>2024-12-12 10:21:35 +0200
committerTobias Backer Dirks <tobias@candosa.com>2024-12-12 10:21:35 +0200
commitd0d7aaf920e83ad14ad2329825c607d3b4c9379d (patch)
tree2a9b487aa66df6010b72efa737b70fad2189485d
parent319d5321b7f5055384fb6db86b04841ec93da4e1 (diff)
feat: force reload of kitty.conf for existing open instances on dark/light toggle
-rwxr-xr-xconfig/hypr/scripts/DarkLight.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh
index 77426902..2e2d614e 100755
--- a/config/hypr/scripts/DarkLight.sh
+++ b/config/hypr/scripts/DarkLight.sh
@@ -109,8 +109,9 @@ else
sed -i '/^background /s/^background .*/background #dddddd/' "${kitty_conf}"
sed -i '/^cursor /s/^cursor .*/cursor #000000/' "${kitty_conf}"
fi
-
-
+for pid in $(pidof kitty); do
+ kill -SIGUSR1 "$pid"
+done
# Set Dynamic Wallpaper for Dark or Light Mode
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage