Update Polybar start script
This commit is contained in:
parent
21a1b57f4f
commit
22755e2b7e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue