From 18909afa41e184083c345c9cd0201d3c0e4d471b Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Mon, 26 Apr 2021 17:27:15 +0200 Subject: [PATCH] Update polybar with newly updated modules --- .config/polybar/config-top.ini | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.config/polybar/config-top.ini b/.config/polybar/config-top.ini index 691b30a..cbb5458 100644 --- a/.config/polybar/config-top.ini +++ b/.config/polybar/config-top.ini @@ -65,7 +65,7 @@ fixed-center = true ; the percentage can optionally be extended with a pixel offset like so: ; 50%:-10, this will result in a width or height of 50% minus 10 pixels width = 100% -height = 30 +height = 17 ; Offset defined as pixel value (e.g. 35) or percentage (e.g. 50%) ; the percentage can optionally be extended with a pixel offset like so: @@ -106,6 +106,10 @@ line-color = ${color.ac} ; The top and bottom borders are added to the bar height, so the effective ; window height is: ; height + border-top-size + border-bottom-size +border-top-size = 4 +border-top-color = ${color.bg} +border-bottom-size = 4 +border-bottom-color = ${color.bg} ; Meanwhile the effective window width is defined entirely by the width key and ; the border is placed withing this area. So you effectively only have the ; following horizontal space on the bar: @@ -116,13 +120,13 @@ line-color = ${color.ac} ; Number of spaces to add at the beginning/end of the bar ; Individual side values can be defined using: ; padding-{left,right} -padding = 1 +; padding = 1 ; Number of spaces to add before/after each module ; Individual side values can be defined using: ; module-margin-{left,right} -module-margin-left = 1 -module-margin-right = 1 +; module-margin-left = 1 +; module-margin-right = 1 ; Fonts are defined using ; ; Font names are specified using a fontconfig pattern. @@ -136,6 +140,9 @@ font-0 = "Fira Code Nerd Font:style=Medium:size=10;1" font-1 = "Wuncon Siji:size=12;1" font-2 = "xos4 Terminus:size=12;2" +; font-0 = "MesloLGS Nerd Font:style=Medium:size=8" +; font-1 = "Wuncon Siji:size=12" +; font-2 = "xos4 Terminus:size=4" ; Modules are added to one of the available blocks ; modules-left = cpu ram ; modules-center = xwindow xbacklight @@ -159,9 +166,9 @@ font-2 = "xos4 Terminus:size=12;2" ;cpu_bar memory_bar filesystem_bar mpd_bar ;volume brightness battery_bar -modules-left = title -modules-center = workspaces -modules-right = keyboard backlight battery pulseaudio-control checknetwork +modules-left = space keyboard | space backlight space pulseaudio-control +modules-center = workspaces updates +modules-right = nvidia space round-left cpu temperature round-right space memory | space filesystem space | space battery space round-left date round-right space ; The separator will be inserted between the output of each module separator =