You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
601 B
17 lines
601 B
#!/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
|
|
|
|
# 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
|
|
|