From 1fa228f8d3695a0b6af4d98769fe479b802ad381 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Tue, 14 Sep 2021 21:54:44 +0200 Subject: Variable declarion in polybar config --- polybar/.config/polybar/config | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'polybar/.config') diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config index a8094af..43f70d5 100644 --- a/polybar/.config/polybar/config +++ b/polybar/.config/polybar/config @@ -23,7 +23,7 @@ secondary = #e60053 alert = ${xrdb:color1} [global/wm] -margin-top = 0 +#margin-top = 0 margin-bottom = 0 [bar/i3] @@ -96,6 +96,7 @@ label-empty-foreground = ${colors.foreground-alt} label-empty-padding = 2 [module/i3] +label = %icon%%name% label-active-font = 0 type = internal/i3 index-sort = false @@ -109,30 +110,28 @@ label-mode-padding = 2 #border-size = 1 #border-colol = #000 -#label-focused = %name% -label-focused = %icon%%name% +label-focused = ${self.label} label-focused-background = ${colors.foreground-alt} label-focused-padding = ${module/bspwm.label-focused-padding} label-focused-foreground = ${colors.foreground} -label-unfocused = %icon%%name% +label-unfocused = ${self.label} label-unfocused-padding = ${module/bspwm.label-occupied-padding} label-unfocused-background = ${colors.background-alt} label-unfocused-foreground = ${colors.foreground-alt} -label-urgent = %icon%%name% +label-urgent = ${self.label} label-urgent-background = ${colors.background} label-urgent-foreground = ${module/bspwm.label-urgent-background} label-urgent-underline = ${module/bspwm.label-urgent-background} label-urgent-padding = ${module/bspwm.label-urgent-padding} -label-visible = %icon%%name% +label-visible = ${self.label} label-visible-background = ${self.label-focused-background} #label-visible-underline = ${self.label-focused-underline} label-visible-padding = ${self.label-focused-padding} strip-wsnumbers = true - fuzzy-match = true -- cgit v1.2.3