hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/polybar/launch.sh
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2024-03-17 20:24:15 +0200
committerhachem <im@hachem.wtf>2024-03-17 20:24:15 +0200
commit0c0c10dea7de45fd2d24f4f0f1e9d892c0b75da7 (patch)
tree8196f853d4c13584a07c5b57a5b46f05eeeb624a /polybar/launch.sh
parentddc5955db60c2831f83610b139579cc8c4f64e01 (diff)
Add quality of life things
Diffstat (limited to 'polybar/launch.sh')
-rw-r--r--polybar/launch.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/polybar/launch.sh b/polybar/launch.sh
new file mode 100644
index 0000000..d54ff76
--- /dev/null
+++ b/polybar/launch.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+killall -q polybar
+while pgrep -u $UID -x polybar >/dev/null; do : ; done
+
+for m in $(polybar --list-monitors | cut -d":" -f1); do
+ WIRELESS=$(ls /sys/class/net/ | grep ^wl | awk 'NR==1{print $1}') MONITOR=$m polybar --reload main &
+done
+