Polybar: Repad and add a 2px bg2 border

This commit is contained in:
Salt 2018-10-20 23:09:05 -05:00
parent 3bcab4925c
commit ce7c188f40

View File

@ -27,7 +27,7 @@ mod-xbacklight = ${self.primary}
notif-package = ${self.foreground-dark}
background = ${xrdb:background}
background-alt = ${xrdb:color8}
background-alt = ${xrdb:bg2}
foreground = ${xrdb:color15}
foreground-dark = ${xrdb:color8}
@ -36,6 +36,7 @@ bar-empty = ${self.border}
[res/config]
padding = 2
padding-bar = 3
[res/fonts]
font-0 = "Inconsolata:style=Regular:size=10;2"
@ -52,26 +53,29 @@ font-4 = "Material Design Icons:size=11;3"
#====================
[template/bar]
# Rendering of the bar
height = 26
# General ordering
bottom = true
wm-restack = ${env:PB_WM_RESTACK:bspwm}
# Module padding and spacing
module-margin = 2
padding = ${res/config.padding}
offset-y = 2
# Tray settings
tray-maxsize = 16
# Mild cosmetics
# Colors
background = ${res/colors.background}
foreground = ${res/colors.foreground}
border-color = ${res/colors.background}
border-size = ${env:PB_BAR_BORDER_SIZE:6}
border-color = ${res/colors.background-alt}
# Whitespace
height = 36
padding = ${res/config.padding-bar}
border-top-size = ${env:PB_BAR_BORDER_SIZE:2}
overline-size = 6
underline-size = 6
# Module whitespace
module-margin = 2
# Module fonts
font-0 = ${res/fonts.font-0}
font-1 = ${res/fonts.font-1}
@ -94,6 +98,8 @@ monitor = ${env:PB_MONITOR:eDP-1}
inherit = template/bar
bottom = false
border-top-size = 0
border-bottom-size = ${env:PB_BAR_BORDER_SIZE:2}
modules-left = ${env:PB_BAR_PRIMARY_2_MODULES_LEFT: }
modules-center = ${env:PB_BAR_PRIMARY_2_MODULES_CENTER: }
@ -112,6 +118,8 @@ monitor = ${env:PB_MONITOR}
inherit = template/bar
bottom = false
border-top-size = 0
border-bottom-size = ${env:PB_BAR_BORDER_SIZE:2}
modules-left = ${env:PB_BAR_SECONDARY_2_MODULES_LEFT: }
modules-center = ${env:PB_BAR_SECONDARY_2_MODULES_CENTER: }