diff options
| author | Tobias Backer Dirks <tobias@candosa.com> | 2024-12-12 10:21:35 +0200 |
|---|---|---|
| committer | Tobias Backer Dirks <tobias@candosa.com> | 2024-12-12 10:21:35 +0200 |
| commit | d0d7aaf920e83ad14ad2329825c607d3b4c9379d (patch) | |
| tree | 2a9b487aa66df6010b72efa737b70fad2189485d /config/hypr/scripts | |
| parent | 319d5321b7f5055384fb6db86b04841ec93da4e1 (diff) | |
feat: force reload of kitty.conf for existing open instances on dark/light toggle
Diffstat (limited to 'config/hypr/scripts')
| -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 |
