aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/DarkLight.sh
diff options
context:
space:
mode:
authorJaKooLit <ejhay.games@gmail.com~>2025-02-10 15:42:58 +0900
committerJaKooLit <ejhay.games@gmail.com~>2025-02-10 15:42:58 +0900
commit0b9692e2125eb6517b162e93287b4cad97b6c4d6 (patch)
tree9150ecba47077ce9b030640b7042ef719cdf341b /config/hypr/scripts/DarkLight.sh
parentba0f1312534abd39a78463eac98049ab14ea4117 (diff)
minor dark light and refresh update
Diffstat (limited to 'config/hypr/scripts/DarkLight.sh')
-rwxr-xr-xconfig/hypr/scripts/DarkLight.sh17
1 files changed, 7 insertions, 10 deletions
diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh
index 0ad5e0dc..01b05b1c 100755
--- a/config/hypr/scripts/DarkLight.sh
+++ b/config/hypr/scripts/DarkLight.sh
@@ -110,9 +110,9 @@ else
sed -i '/^cursor /s/^cursor .*/cursor #000000/' "${kitty_conf}"
fi
-for pid in $(pidof kitty); do
- kill -SIGUSR1 "$pid"
-done
+#for pid in $(pidof kitty); do
+# kill -SIGUSR1 "$pid"
+#done
# Set Dynamic Wallpaper for Dark or Light Mode
@@ -234,19 +234,16 @@ update_theme_mode
${SCRIPTSDIR}/WallustSwww.sh &&
# some process to kill
-_ps=(waybar rofi swaync ags swaybg)
-for _prs in "${_ps[@]}"; do
- if pidof "${_prs}" >/dev/null; then
- pkill "${_prs}"
- fi
+for pid in $(pidof kitty waybar rofi swaync ags swaybg); do
+ kill -SIGUSR1 "$pid"
done
sleep 2
${SCRIPTSDIR}/Refresh.sh
-sleep 0.3
+sleep 1
# Display notifications for theme and icon changes
-notify-send -u normal -i "$notif" " Themes switched to:" " $next_mode Mode"
+notify-send -u low -i "$notif" " Themes switched to:" " $next_mode Mode"
exit 0
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage