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
|
#!/bin/bash
|
||||||
MONITOR=$m polybar --reload top &
|
## Author: Shaun Reed | Contact: shaunrd0@gmail.com | URL: www.shaunreed.com ##
|
||||||
MONITOR=$m polybar --reload bottom &
|
## A script placed in ~/.config/polybar/ - Uses ${env:MONITOR} ##
|
||||||
done
|
## Starts polybars top and bottom on multiple displays ##
|
||||||
#for m in $(polybar --list-monitors | cut -d":" -f1); do
|
###############################################################################
|
||||||
# MONITOR=$m polybar --reload bottom &
|
# start-polybar.sh
|
||||||
#done
|
|
||||||
|
# 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