Skip to content

Commit

Permalink
Merge pull request #498 from omgitsaheadcrab/reload-kitty-lightdark
Browse files Browse the repository at this point in the history
feat: force reload of kitty.conf for existing open instances on dark/light toggle
  • Loading branch information
dwilliam62 authored Dec 12, 2024
2 parents 319d532 + d0d7aaf commit 9225c14
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/hypr/scripts/DarkLight.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9225c14

Please sign in to comment.