Clean up monitor-setup

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2019-06-17 20:13:12 +02:00
parent 7f0114dae6
commit 5f170c2db6
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
2 changed files with 9 additions and 7 deletions

View file

@ -38,7 +38,9 @@ MONITORS=(
)
for monitor in "${MONITORS[@]}"; do
export POLYBAR_MONITOR="${monitor}"
polybar top &
polybar bottom &
if is-connected "${monitor}"; then
export POLYBAR_MONITOR="${monitor}"
polybar top &
polybar bottom &
fi
done