aboutsummaryrefslogtreecommitdiff
path: root/hypr/.config/hypr/change/waybar-alt-css-17
diff options
context:
space:
mode:
Diffstat (limited to 'hypr/.config/hypr/change/waybar-alt-css-17')
-rwxr-xr-xhypr/.config/hypr/change/waybar-alt-css-1721
1 files changed, 21 insertions, 0 deletions
diff --git a/hypr/.config/hypr/change/waybar-alt-css-17 b/hypr/.config/hypr/change/waybar-alt-css-17
new file mode 100755
index 0000000..70c4b25
--- /dev/null
+++ b/hypr/.config/hypr/change/waybar-alt-css-17
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+rm -r ~/.config/hypr/waybar/*.css
+cp -r ~/.config/hypr/waybar-alt-8/style/style-17.css ~/.config/hypr/waybar/style.css
+
+# kill first
+if [[ $(pidof waybar) ]]; then
+ killall -q waybar
+fi
+
+while pgrep -u $UID -x waybar > /dev/null;do sleep 1;done
+
+
+# start up again
+CONFIG="$HOME/.config/hypr/waybar/config.ini"
+STYLE="$HOME/.config/hypr/waybar/style.css"
+
+if [[ ! $(pidof waybar) ]]; then
+ waybar --bar main-bar --log-level error --config ${CONFIG} --style ${STYLE} &
+fi
+