From 8f7a9c7891164fc6ace46243296e87eaab65f725 Mon Sep 17 00:00:00 2001 From: hachem Date: Sun, 17 Mar 2024 20:27:38 +0200 Subject: Properly set them in the .config folder --- .config/polybar/launch.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .config/polybar/launch.sh (limited to '.config/polybar/launch.sh') 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 + -- cgit v1.3