dots-of-war/files/.config/polybar/launch.sh

12 lines
387 B
Bash
Raw Normal View History

2020-03-19 11:03:08 +00:00
#!/bin/bash
killall -q polybar
echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log
2020-05-07 14:05:16 +00:00
# for loop only for multi monitor
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
2020-05-10 20:27:15 +00:00
MONITOR=$m polybar -r --config=/home/leon/.config/polybar/config.ini main >>/tmp/polybar1.log 2>&1 &
2020-05-07 14:05:16 +00:00
done
#polybar --config=/home/leon/.config/polybar/config.ini main >>/tmp/polybar1.log 2>&1 &