aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts
diff options
context:
space:
mode:
authorinstaller <installer@gmail.com>2025-02-11 00:49:27 +0900
committerinstaller <installer@gmail.com>2025-02-11 00:49:27 +0900
commit40abfe9cbc5d35fe7118bb8ff7e7974bfeb13e1a (patch)
tree39279d69e67a8f40e8f89b1af27348b9a421e21e /config/hypr/scripts
parent309314e5727bcb4f369c34489a1ee2c550bce20e (diff)
updated DarkLight and swaync css
Diffstat (limited to 'config/hypr/scripts')
-rwxr-xr-xconfig/hypr/scripts/DarkLight.sh18
-rwxr-xr-xconfig/hypr/scripts/Refresh.sh6
2 files changed, 15 insertions, 9 deletions
diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh
index f5b9389b..783fa31a 100755
--- a/config/hypr/scripts/DarkLight.sh
+++ b/config/hypr/scripts/DarkLight.sh
@@ -20,8 +20,11 @@ wallust_config="$HOME/.config/wallust/wallust.toml"
pallete_dark="dark16"
pallete_light="light16"
-# kill swaybg if running
-pkill swaybg
+# intial kill process
+for pid in kitty waybar rofi swaync ags swaybg; do
+ killall -SIGUSR1 "$pid"
+done
+
# Initialize swww if needed
swww query || swww-daemon --format xrgb
@@ -230,15 +233,16 @@ update_theme_mode
${SCRIPTSDIR}/WallustSwww.sh &&
-# some process to kill
-for pid in $(pidof kitty waybar rofi swaync ags swaybg); do
- kill -SIGUSR1 "$pid"
+sleep 2
+# kill process
+for pid1 in kitty waybar rofi swaync ags swaybg; do
+ killall "$pid1"
done
-sleep 2
+sleep 1
${SCRIPTSDIR}/Refresh.sh
-sleep 1
+sleep 0.5
# Display notifications for theme and icon changes
notify-send -u low -i "$notif" " Themes switched to:" " $next_mode Mode"
diff --git a/config/hypr/scripts/Refresh.sh b/config/hypr/scripts/Refresh.sh
index 5cb69af4..b041b19b 100755
--- a/config/hypr/scripts/Refresh.sh
+++ b/config/hypr/scripts/Refresh.sh
@@ -22,10 +22,12 @@ for _prs in "${_ps[@]}"; do
fi
done
-killall -SIGUSR2 waybar # added since wallust sometimes not applying
+# added since wallust sometimes not applying
+killall -SIGUSR2 waybar
+killall -SIGUSR2 swaync
# quit ags & relaunch ags
-#ags -q && ags &
+ags -q && ags &
# some process to kill
for pid in $(pidof waybar rofi swaync ags swaybg); do
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage