diff --git a/.config/dtfscripts/dsk-cstm-0.rc b/.config/dtfscripts/dsk-cstm-0.rc index 78616674..d6054019 100755 --- a/.config/dtfscripts/dsk-cstm-0.rc +++ b/.config/dtfscripts/dsk-cstm-0.rc @@ -1,9 +1,5 @@ #!/bin/sh export TERMINAL=konsole -# Primary bottom -export PB_BAR_PRIMARY_MODULES_LEFT='cpu memory swap' - -export PB_MODULE_BAR_WIDTH=60 export PB_MODULE_ETH_INTERFACE=eno1 export PB_MODULE_WLAN_INTERFACE=wlp5s0 # vim:ft=sh diff --git a/.config/polybar/config b/.config/polybar/config index ed1496db..b482f100 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -34,15 +34,12 @@ border = #3c3836 bar-empty = ${self.border} [res/config] -padding = 4 -bar-width = ${env:PB_MODULE_BAR_WIDTH:45} -bar-indicator = -bar-fill = | +padding = 2 [res/fonts] -font-0 = "Roboto:style=Regular:size=10;2" -font-1 = "Roboto:style=Bold:size=10;2" -font-2 = "Roboto:style=Light:size=10;2" +font-0 = "Inconsolata:style=Regular:size=10;2" +font-1 = "Inconsolata:style=Bold:size=10;2" +font-2 = "Inconsolata:style=Light:size=10;2" font-3 = "Inconsolata:size=10;2" font-4 = "Material Design Icons:size=11;3" @@ -61,7 +58,7 @@ wm-restack = ${env:PB_WM_RESTACK:bspwm} # Module padding and spacing module-margin = 2 -padding = 4 +padding = ${res/config.padding} # Tray settings tray-maxsize = 16 @@ -85,12 +82,9 @@ font-4 = ${res/fonts.font-4} monitor = ${env:PB_MONITOR:eDP-1} inherit = template/bar -tray-detached = true -tray-position = center - -modules-left = ${env:PB_BAR_PRIMARY_MODULES_LEFT:cpu memory} -modules-center = ${env:PB_BAR_PRIMARY_MODULES_CENTER: } -modules-right = ${env:PB_BAR_PRIMARY_MODULES_RIGHT:volume battery | date} +modules-left = ${env:PB_BAR_PRIMARY_MODULES_LEFT:cpu memory swap} +modules-center = ${env:PB_BAR_PRIMARY_MODULES_CENTER: bspwm} +modules-right = ${env:PB_BAR_PRIMARY_MODULES_RIGHT:volume battery date} [bar/primary-2] monitor = ${env:PB_MONITOR:eDP-1} @@ -98,9 +92,9 @@ inherit = template/bar bottom = false -modules-left = ${env:PB_BAR_PRIMARY_2_MODULES_LEFT:bspwm} -modules-center = ${env:PB_BAR_PRIMARY_2_MODULES_CENTER:xwindow} -modules-right = ${env:PB_BAR_PRIMARY_2_MODULES_RIGHT:wlan eth} +modules-left = ${env:PB_BAR_PRIMARY_2_MODULES_LEFT: } +modules-center = ${env:PB_BAR_PRIMARY_2_MODULES_CENTER: } +modules-right = ${env:PB_BAR_PRIMARY_2_MODULES_RIGHT: } [bar/secondary] monitor = ${env:PB_MONITOR} @@ -144,30 +138,22 @@ content = " " #==================== [module/battery] type = internal/battery -format-charging = -format-charging-prefix = "Battery: " +format-charging = +format-charging-prefix = "CHR: " format-charging-prefix-foreground = ${res/colors.icon-battery} -format-discharging = -format-discharging-prefix = "Battery: " +format-discharging = +format-discharging-prefix = "BAT: " format-discharging-prefix-foreground = ${res/colors.icon-battery} -format-full = -format-full-prefix = "Battery: " +format-full = +format-full-prefix = "BAT: " format-full-prefix-foreground = ${res/colors.icon-battery} time-format = %H:%M full-at = 98 interval = 15 -label-charging = %percentage%%+ -label-discharging = %percentage%% -label-full = %percentage%% - -bar-capacity-width = ${res/config.bar-width} -bar-capacity-fill = ${res/config.bar-fill} -bar-capacity-fill-foreground = ${res/colors.icon-battery} -bar-capacity-empty = ${self.bar-capacity-fill} -bar-capacity-empty-foreground = ${res/colors.bar-empty} -bar-capacity-indicator = ${res/config.bar-indicator} -bar-capacity-indicator-foreground = ${res/colors.background-alt} +label-charging = %percentage:3%% +label-discharging = %percentage:3%% +label-full = %percentage:3%% [module/bspwm] type = internal/bspwm @@ -199,18 +185,12 @@ label-empty-font = 3 [module/cpu] type = internal/cpu -format = +format =