From 8b12687dd8de918ef8ff2f38dfa18b33ef65a80f Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Wed, 5 Dec 2018 11:26:27 -0500 Subject: [PATCH] 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. --- polybar/.config/polybar/launch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polybar/.config/polybar/launch.sh b/polybar/.config/polybar/launch.sh index bea8a153..9ecb067f 100755 --- a/polybar/.config/polybar/launch.sh +++ b/polybar/.config/polybar/launch.sh @@ -29,8 +29,8 @@ fi # Set the bspwm variables BSPWM_TOP_PADDING=$(($POLYBAR_HEIGHT + ${POLYBAR_OFFSET_XY:-0} + ${POLYBAR_BORDER_SIZE:-0} * 2)) -BSPWM_BORDER_WIDTH=${POLYBAR_BORDER_SIZE:-$((1 * $POLYBAR_SCALE))} -BSPWM_WINDOW_GAP=${POLYBAR_OFFSET_XY:-$((20 * $POLYBAR_SCALE))} +BSPWM_BORDER_WIDTH=${POLYBAR_BORDER_SIZE:-0} +BSPWM_WINDOW_GAP=${POLYBAR_OFFSET_XY:-0} bspc_config $BSPWM_TOP_PADDING $BSPWM_BORDER_WIDTH $BSPWM_WINDOW_GAP