Polybar: Change bar names
These ones more accurately reflect their purposes and don't constrain possible settings
This commit is contained in:
parent
8126963c79
commit
a313105947
@ -52,7 +52,7 @@ font-1 = ${res/fonts.font-1}
|
||||
|
||||
# BARS
|
||||
#====================
|
||||
[bar/primary-top-left]
|
||||
[bar/primary-left]
|
||||
monitor = ${env:PB_MONITOR}
|
||||
inherit = template/bar
|
||||
offset-x = 5%
|
||||
@ -60,7 +60,7 @@ offset-x = 5%
|
||||
modules-left = i3 bspwm
|
||||
modules-right = update-arch cpu memory fs-home
|
||||
|
||||
[bar/primary-top-right]
|
||||
[bar/primary-right]
|
||||
monitor = ${env:PB_MONITOR}
|
||||
inherit = template/bar
|
||||
offset-x = 55%
|
||||
@ -68,7 +68,7 @@ offset-x = 55%
|
||||
modules-left = wlan
|
||||
modules-right = xbacklight volume battery date
|
||||
|
||||
[bar/secondary-top]
|
||||
[bar/secondary]
|
||||
monitor = ${env:PB_MONITOR}
|
||||
inherit = template/bar
|
||||
width = 90%
|
||||
|
@ -21,8 +21,8 @@ if [[ $PB_MONITOR == "" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
printf '[INFO] Starting Polybar primary on monitor $PB_MONITOR'
|
||||
polybar -r primary-top-left&
|
||||
polybar -r primary-top-right&
|
||||
polybar -r primary-left&
|
||||
polybar -r primary-right&
|
||||
# ...and then moving on to secondaries, if we have them
|
||||
# Alright, now this looks *really* bad, spawning so many subprocesses, but
|
||||
# there's no way in hell you can get me to attempt to solve this with regex.
|
||||
@ -33,7 +33,7 @@ if [[ $secondary_monitors == "" ]]; then
|
||||
fi
|
||||
for monitor in $secondary_monitors; do
|
||||
printf '[INFO] Starting Polybar secondary on monitor $monitor'
|
||||
PB_MONITOR=$monitor polybar -r secondary-top
|
||||
PB_MONITOR=$monitor polybar -r secondary
|
||||
done
|
||||
|
||||
disown
|
||||
|
Loading…
Reference in New Issue
Block a user