summaryrefslogtreecommitdiff
path: root/config/polybar/launch.sh
blob: 98395fc632a9c69bffa8bf6451900194738e896b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

# Terminate already running bar instances
killall -q polybar

# Wait until the processes have been shut down
while pgrep -u $UID -x polybar >/dev/null; do sleep 0.1; done

# Launch Polybar, using default config location ~/.config/polybar/config
#polybar music &

#MONITOR=DP-0 polybar --reload  wsonly &

export MONITOR=DP-1
polybar wsonly &

export MONITOR=DP-4
polybar wsonly &

export MONITOR=HDMI-0
polybar wsonly &

export MONITOR=DP-2
polybar ws &