diff options
| author | Donald Williams <129223418+dwilliam62@users.noreply.github.com> | 2024-12-12 09:31:00 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-12 09:31:00 -0500 |
| commit | 9225c14ca169e473e1fd35be0f7bb8f705a33920 (patch) | |
| tree | 2a9b487aa66df6010b72efa737b70fad2189485d | |
| parent | 319d5321b7f5055384fb6db86b04841ec93da4e1 (diff) | |
| parent | d0d7aaf920e83ad14ad2329825c607d3b4c9379d (diff) | |
Merge pull request #498 from omgitsaheadcrab/reload-kitty-lightdark
feat: force reload of kitty.conf for existing open instances on dark/light toggle
| -rwxr-xr-x | config/hypr/scripts/DarkLight.sh | 5 |
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 |
