diff options
| author | JaKooLit <ejhay.games@gmail.com> | 2025-03-13 23:05:09 +0900 |
|---|---|---|
| committer | JaKooLit <ejhay.games@gmail.com> | 2025-03-13 23:05:09 +0900 |
| commit | e030be2581c7955e7df9931130a5915d6b92cd70 (patch) | |
| tree | 2746cb2ed0b8ffde2f8411b3520c58b6bd079a62 /config/hypr/scripts | |
| parent | 8a6902a8d4e1782757bee3b93b581dd41bedd716 (diff) | |
edited Dark-Light.sh to not close kitty during theme switch
Diffstat (limited to 'config/hypr/scripts')
| -rwxr-xr-x | config/hypr/scripts/DarkLight.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh index 96d43fa7..9f6ae490 100755 --- a/config/hypr/scripts/DarkLight.sh +++ b/config/hypr/scripts/DarkLight.sh @@ -21,7 +21,7 @@ pallete_dark="dark16" pallete_light="light16" # intial kill process -for pid in kitty waybar rofi swaync ags swaybg; do +for pid in waybar rofi swaync ags swaybg; do killall -SIGUSR1 "$pid" done @@ -115,6 +115,10 @@ else sed -i '/^cursor /s/^cursor .*/cursor #000000/' "${kitty_conf}" fi +for pid_kitty in $(pidof kitty); do + kill -SIGUSR1 "$pid_kitty" +done + # Set Dynamic Wallpaper for Dark or Light Mode if [ "$next_mode" = "Dark" ]; then next_wallpaper="$(find -L "${dark_wallpapers}" -type f \( -iname "*.jpg" -o -iname "*.png" \) -print0 | shuf -n1 -z | xargs -0)" @@ -235,7 +239,7 @@ ${SCRIPTSDIR}/WallustSwww.sh && sleep 2 # kill process -for pid1 in kitty waybar rofi swaync ags swaybg; do +for pid1 in waybar rofi swaync ags swaybg; do killall "$pid1" done |
