aboutsummaryrefslogtreecommitdiff
path: root/polybar/launch.sh
blob: 1c141ef848a2ce3d013ec606092229a226816670 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

polybar --reload -q main -c "$HOME/.config/polybar/config.ini" &
polybar --reload -q opt -c "$HOME/.config/polybar/config.ini" &

while [ -e "$(pgrep -x polybar)" ]; do sleep 1; done
sleep 2

POLYBARS=$(pgrep -x polybar)
for BAR in ${POLYBARS}; do
	xdo below -t $(xdo id -n root) $(xdo id -p ${BAR})
done