diff options
| author | hachem <im@hachem.wtf> | 2024-03-17 20:27:38 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2024-03-17 20:27:38 +0200 |
| commit | 8f7a9c7891164fc6ace46243296e87eaab65f725 (patch) | |
| tree | e99da4f56e280e5821bdc22f7ea41b92425fcc2d /.config/polybar/launch.sh | |
| parent | 86cac1826f0386c4d43be03eb1ea315b84520a3a (diff) | |
Properly set them in the .config folder
Diffstat (limited to '.config/polybar/launch.sh')
| -rw-r--r-- | .config/polybar/launch.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.config/polybar/launch.sh b/.config/polybar/launch.sh new file mode 100644 index 0000000..d54ff76 --- /dev/null +++ b/.config/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 + |
