more bar fixes

This commit is contained in:
Daniel Flanagan 2017-03-14 20:38:52 -05:00
parent b851af90c3
commit ac4cb659cf
2 changed files with 2 additions and 5 deletions

View file

@ -5,8 +5,6 @@ export BAR_HEIGHT=40
export BAR_ON_TOP=0 export BAR_ON_TOP=0
export BAR_SIDE_MARGIN=200 export BAR_SIDE_MARGIN=200
echo "$BAR_MONITOR"
export GAP=$(bspc wm -d | grep -Po '(windowGap.*?,)' | grep -Po '\d*' | head -n 1) export GAP=$(bspc wm -d | grep -Po '(windowGap.*?,)' | grep -Po '\d*' | head -n 1)
MONITOR_WIDTH=$(xrandr | grep "$BAR_MONITOR" | grep -Po ' \d+' | head -n 1) MONITOR_WIDTH=$(xrandr | grep "$BAR_MONITOR" | grep -Po ' \d+' | head -n 1)
export BAR_WIDTH=$((MONITOR_WIDTH - GAP - GAP - BAR_SIDE_MARGIN - BAR_SIDE_MARGIN)) export BAR_WIDTH=$((MONITOR_WIDTH - GAP - GAP - BAR_SIDE_MARGIN - BAR_SIDE_MARGIN))
@ -17,7 +15,6 @@ export POS_X=$((GAP + BAR_SIDE_MARGIN))
export BAR_FONT_DECLARATION="${BAR_FONT}:pixelsize=${BAR_FONT_SIZE};1" export BAR_FONT_DECLARATION="${BAR_FONT}:pixelsize=${BAR_FONT_SIZE};1"
EHEIGHT=$((BAR_HEIGHT + GAP)) EHEIGHT=$((BAR_HEIGHT + GAP))
echo "$EHEIGHT = $GAP + $BAR_HEIGHT"
export BAR_BOTTOM="true" export BAR_BOTTOM="true"
export POS_Y=0 export POS_Y=0

View file

@ -54,10 +54,10 @@ tray-padding = 2
;tray-transparent = true ;tray-transparent = true
;tray-background = #0063ff ;tray-background = #0063ff
;wm-restack = bspwm wm-restack = bspwm
;wm-restack = i3 ;wm-restack = i3
;override-redirect = true override-redirect = true
;scroll-up = bspwm-desknext ;scroll-up = bspwm-desknext
;scroll-down = bspwm-deskprev ;scroll-down = bspwm-deskprev