From 56741b6cb96d9318304d3fee03384da9712b5122 Mon Sep 17 00:00:00 2001 From: Salt Date: Fri, 15 Sep 2017 02:04:12 -0500 Subject: [PATCH] Polybar: Set up inheritance to a global template module --- .config/polybar/config | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.config/polybar/config b/.config/polybar/config index 44ad5ec4..ac88de2b 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -123,7 +123,11 @@ content-foreground = ${res/colors.foreground} # TEMPLATE #==================== +[template/module] +format-padding = 0 + [template/module/battery] +inherit = template/module type = internal/battery battery = BAT0 format-charging-underline = ${res/colors.underline-battery} @@ -134,11 +138,13 @@ full-at = 95 interval = 15 [template/module/cpu] +inherit = template/module type = internal/cpu format-underline = ${res/colors.underline-cpu} interval = 1 [template/module/network] +inherit = template/module type = internal/network interface = wlp1s0 format-connected = @@ -157,6 +163,7 @@ label-disconnected = interval = 1 [template/module/temperature] +inherit = template/module type = internal/temperature thermal-zone = 0 warn-temperature = 50 @@ -164,6 +171,7 @@ warn-temperature = 50 # STOCK #==================== [module/i3] +inherit = template/module type = internal/i3 format = index-sort = true @@ -192,6 +200,7 @@ label-urgent-padding = ${self.label-focused-padding} label-urgent-overline = ${res/colors.alert} [module/bspwm] +inherit = template/module type = internal/bspwm enable-click = true enable-scroll = true @@ -294,6 +303,7 @@ format-prefix-foreground = ${self.format-underline} label = %percentage%% [module/date] +inherit = template/module type = internal/date format-underline = ${res/colors.underline-date} @@ -310,6 +320,7 @@ label = %date% %time% interval = 30 [module/date-mini] +inherit = template/module type = internal/date format-underline = ${res/colors.underline-date} @@ -322,6 +333,7 @@ label= %date%%time% interval = 60 [module/memory-label] +inherit = template/module type = internal/memory format =