bspwm, Polybar: Move wm-restack to envvar, add secondary bar
Hardcoding is bad and I felt bad
This commit is contained in:
parent
a6266408ca
commit
9710720d09
@ -37,7 +37,12 @@ if [[ $(pgrep polybar) ]]; then
|
|||||||
# Just covering bases here. Makes it easy to reload settings.
|
# Just covering bases here. Makes it easy to reload settings.
|
||||||
killall polybar
|
killall polybar
|
||||||
fi
|
fi
|
||||||
polybar -r alpha & # Simple bar
|
|
||||||
|
# Polybar and related configuration
|
||||||
|
$(
|
||||||
|
export PB_WM_RESTACK=bspwm
|
||||||
|
polybar -r alpha &
|
||||||
|
)&
|
||||||
|
|
||||||
## bspwm GENERAL CONFIGURATION
|
## bspwm GENERAL CONFIGURATION
|
||||||
bspc monitor -d 1 2 3 4 5 6 7 8
|
bspc monitor -d 1 2 3 4 5 6 7 8
|
||||||
|
@ -48,7 +48,7 @@ font-4 =
|
|||||||
# Rendering of the bar
|
# Rendering of the bar
|
||||||
width = 100%
|
width = 100%
|
||||||
height = 30
|
height = 30
|
||||||
wm-restack = bspwm
|
wm-restack = ${env:PB_WM_RESTACK:i3}
|
||||||
|
|
||||||
# Module padding and spacing
|
# Module padding and spacing
|
||||||
module-margin = 1
|
module-margin = 1
|
||||||
@ -80,6 +80,13 @@ modules-left = i3 bspwm cpu memory update-arch
|
|||||||
modules-center = xwindow
|
modules-center = xwindow
|
||||||
modules-right = xbacklight volume battery wlan date
|
modules-right = xbacklight volume battery wlan date
|
||||||
|
|
||||||
|
[bar/beta]
|
||||||
|
inherit = template/bar
|
||||||
|
|
||||||
|
modules-left = i3 bspwm
|
||||||
|
modules-center = xwindow
|
||||||
|
modules-right =
|
||||||
|
|
||||||
#========================================
|
#========================================
|
||||||
# MODULES
|
# MODULES
|
||||||
#========================================
|
#========================================
|
||||||
|
Loading…
Reference in New Issue
Block a user