aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'config/hypr/scripts')
-rwxr-xr-xconfig/hypr/scripts/Refresh.sh16
1 files changed, 12 insertions, 4 deletions
diff --git a/config/hypr/scripts/Refresh.sh b/config/hypr/scripts/Refresh.sh
index 1aa63378..78f76702 100755
--- a/config/hypr/scripts/Refresh.sh
+++ b/config/hypr/scripts/Refresh.sh
@@ -22,13 +22,11 @@ for _prs in "${_ps[@]}"; do
fi
done
+killall -SIGUSR2 waybar # added since wallust sometimes not applying
+
# quit ags
ags -q
-sleep 1
-#Restart waybar
-waybar && killall -SIGUSR2 waybar # added since wallust sometimes not applying
-
# relaunch swaync
sleep 0.5
swaync > /dev/null 2>&1 &
@@ -36,6 +34,16 @@ swaync > /dev/null 2>&1 &
# relaunch ags
ags &
+# Kill waybar (yet again) # added since wallust sometimes not applying
+if pidof waybar >/dev/null; then
+ pkill waybar
+fi
+
+
+sleep 1
+#Restart waybar
+waybar &
+
# Relaunching rainbow borders if the script exists
sleep 1
if file_exists "${UserScripts}/RainbowBorders.sh"; then
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage