mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-16 11:51:13 +01:00
polybar: Remove border width and window gap by default
Realistically, you use a window manager to take up all the available space on a screen. Borders and gaps are counter-intuitive in this regard. Since polybar has a module that shows the title of the focused window, using a border width even in gapless mode is no longer necessary. This also works conveniently well with bspwm's monocle desktop layout, which will also inherit the no-border no-gaps methodology and take up all the available screen space.
This commit is contained in:
parent
f1b4f82556
commit
8b12687dd8
@ -29,8 +29,8 @@ fi
|
|||||||
|
|
||||||
# Set the bspwm variables
|
# Set the bspwm variables
|
||||||
BSPWM_TOP_PADDING=$(($POLYBAR_HEIGHT + ${POLYBAR_OFFSET_XY:-0} + ${POLYBAR_BORDER_SIZE:-0} * 2))
|
BSPWM_TOP_PADDING=$(($POLYBAR_HEIGHT + ${POLYBAR_OFFSET_XY:-0} + ${POLYBAR_BORDER_SIZE:-0} * 2))
|
||||||
BSPWM_BORDER_WIDTH=${POLYBAR_BORDER_SIZE:-$((1 * $POLYBAR_SCALE))}
|
BSPWM_BORDER_WIDTH=${POLYBAR_BORDER_SIZE:-0}
|
||||||
BSPWM_WINDOW_GAP=${POLYBAR_OFFSET_XY:-$((20 * $POLYBAR_SCALE))}
|
BSPWM_WINDOW_GAP=${POLYBAR_OFFSET_XY:-0}
|
||||||
|
|
||||||
bspc_config $BSPWM_TOP_PADDING $BSPWM_BORDER_WIDTH $BSPWM_WINDOW_GAP
|
bspc_config $BSPWM_TOP_PADDING $BSPWM_BORDER_WIDTH $BSPWM_WINDOW_GAP
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user