aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/Refresh.sh
diff options
context:
space:
mode:
Diffstat (limited to 'config/hypr/scripts/Refresh.sh')
-rwxr-xr-xconfig/hypr/scripts/Refresh.sh21
1 files changed, 8 insertions, 13 deletions
diff --git a/config/hypr/scripts/Refresh.sh b/config/hypr/scripts/Refresh.sh
index c8c46695..77d7870f 100755
--- a/config/hypr/scripts/Refresh.sh
+++ b/config/hypr/scripts/Refresh.sh
@@ -25,30 +25,25 @@ done
killall -SIGUSR2 waybar # added since wallust sometimes not applying
# quit ags & relaunch ags
-#ags -q && ags &
+ags -q && ags &
-# Kill waybar & swaync (yet again) # added since wallust sometimes not applying
-_ps2=(waybar swaync)
-for _prs2 in "${_ps2[@]}"; do
- if pidof "${_prs2}" >/dev/null; then
- killall "${_prs2}"
- fi
+# some process to kill
+for pid in $(pidof waybar rofi swaync ags swaybg); do
+ kill -SIGUSR1 "$pid"
done
-# relaunch swaync
-sleep 0.5
-swaync > /dev/null 2>&1 &
-
#Restart waybar
sleep 1
waybar &
+# relaunch swaync
+sleep 0.5
+swaync > /dev/null 2>&1 &
+
# Relaunching rainbow borders if the script exists
sleep 1
if file_exists "${UserScripts}/RainbowBorders.sh"; then
${UserScripts}/RainbowBorders.sh &
fi
-
-
exit 0 \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage