diff options
| author | hachem <im@hachem.wtf> | 2024-03-17 20:24:15 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2024-03-17 20:24:15 +0200 |
| commit | 0c0c10dea7de45fd2d24f4f0f1e9d892c0b75da7 (patch) | |
| tree | 8196f853d4c13584a07c5b57a5b46f05eeeb624a /polybar/launch.sh | |
| parent | ddc5955db60c2831f83610b139579cc8c4f64e01 (diff) | |
Add quality of life things
Diffstat (limited to 'polybar/launch.sh')
| -rw-r--r-- | polybar/launch.sh | 9 |
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 + |
