Update Polybar start script

This commit is contained in:
Shaun Reed 2019-09-14 06:08:28 -04:00
parent 21a1b57f4f
commit 22755e2b7e
1 changed files with 16 additions and 7 deletions

View File

@ -1,8 +1,17 @@
for m in $(polybar --list-monitors | cut -d":" -f1); do
MONITOR=$m polybar --reload top &
MONITOR=$m polybar --reload bottom &
done
#for m in $(polybar --list-monitors | cut -d":" -f1); do
# MONITOR=$m polybar --reload bottom &
#done
#!/bin/bash
## Author: Shaun Reed | Contact: shaunrd0@gmail.com | URL: www.shaunreed.com ##
## A script placed in ~/.config/polybar/ - Uses ${env:MONITOR} ##
## Starts polybars top and bottom on multiple displays ##
###############################################################################
# start-polybar.sh
# Kill any previous polybars
pkill -f polybar
# For each monitor in list up to ':'
for m in $(polybar --list-monitors | cut -d":" -f1); do
# Reload polybars with monitor device name
MONITOR=$m polybar --reload top &
MONITOR=$m polybar --reload bottom &
done