nicer polybar

This commit is contained in:
Moritz Böhme 2021-11-29 11:54:51 +01:00
parent 7498454bbd
commit 0e2e216234
3 changed files with 16 additions and 10 deletions

View file

@ -48,15 +48,15 @@ fixed-center = true
; Dimension defined as pixel value (e.g. 35) or percentage (e.g. 50%), ; Dimension defined as pixel value (e.g. 35) or percentage (e.g. 50%),
; the percentage can optionally be extended with a pixel offset like so: ; 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 ; 50%:-10, this will result in a width or height of 50% minus 10 pixels
width = 100%:-20 width = 100%
height = 30 height = 30
; Offset defined as pixel value (e.g. 35) or percentage (e.g. 50%) ; 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: ; the percentage can optionally be extended with a pixel offset like so:
; 50%:-10, this will result in an offset in the x or y direction ; 50%:-10, this will result in an offset in the x or y direction
; of 50% minus 10 pixels ; of 50% minus 10 pixels
offset-x = 10 offset-x = 0
offset-y = 5 offset-y = 0
; Background ARGB color (e.g. #f00, #ff992a, #ddff1023) ; Background ARGB color (e.g. #f00, #ff992a, #ddff1023)
background = ${colors.background-alt} background = ${colors.background-alt}
@ -100,14 +100,12 @@ border-bottom-color = ${colors.pink}
; Number of spaces to add at the beginning/end of the bar ; Number of spaces to add at the beginning/end of the bar
; Individual side values can be defined using: ; Individual side values can be defined using:
; padding-{left,right} ; padding-{left,right}
padding-left = 1 padding = 0
padding-right = 1
; Number of spaces to add before/after each module ; Number of spaces to add before/after each module
; Individual side values can be defined using: ; Individual side values can be defined using:
; module-margin-{left,right} ; module-margin-{left,right}
module-margin-left = 1 module-margin = 0
module-margin-right = 1
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

View file

@ -112,6 +112,7 @@ interval = 2
format-prefix = " " format-prefix = " "
format-prefix-foreground = ${colors.red} format-prefix-foreground = ${colors.red}
format-underline = ${colors.red} format-underline = ${colors.red}
format-padding = 2
label = %percentage:2%% label = %percentage:2%%
[module/date] [module/date]
@ -125,6 +126,7 @@ time = %H:%M
time-alt = %H:%M:%S time-alt = %H:%M:%S
format-underline = ${colors.purple} format-underline = ${colors.purple}
format-padding = 2
label = %date% %time% label = %date% %time%
@ -134,6 +136,7 @@ interface = enp42s0
interval = 3.0 interval = 3.0
format-connected-underline = ${colors.purple} format-connected-underline = ${colors.purple}
format-padding = 2
label-connected = "%upspeed% %downspeed%" label-connected = "%upspeed% %downspeed%"
[module/memory] [module/memory]
@ -142,6 +145,7 @@ interval = 2
format-prefix = " " format-prefix = " "
format-prefix-foreground = ${colors.green} format-prefix-foreground = ${colors.green}
format-underline = ${colors.green} format-underline = ${colors.green}
format-padding = 2
label = %percentage_used%% label = %percentage_used%%
click-left=kitty bpytop click-left=kitty bpytop
@ -152,6 +156,7 @@ type = custom/menu
expand-right = false expand-right = false
format-spacing = 1 format-spacing = 1
format-padding = 2
label-open = "" label-open = ""
label-open-foreground = ${colors.orange} label-open-foreground = ${colors.orange}
@ -181,6 +186,8 @@ menu-3-0-exec = systemctl hibernate
type = internal/pulseaudio type = internal/pulseaudio
format-volume = <label-volume> <bar-volume> format-volume = <label-volume> <bar-volume>
format-padding = 2
format-underline = ${colors.orange}
label-volume = %percentage%% label-volume = %percentage%%
label-volume-foreground = ${colors.foreground} label-volume-foreground = ${colors.foreground}
@ -216,9 +223,11 @@ interval = 3.0
format-connected-underline = ${colors.purple} format-connected-underline = ${colors.purple}
label-connected = "%upspeed% %downspeed%" label-connected = "%upspeed% %downspeed%"
format-padding = 2
[module/xwindow] [module/xwindow]
type = internal/xwindow type = internal/xwindow
format = <label> format = <label>
label = %title:0:30:...% label = %title:0:30:...%
format-underline = ${colors.orange} format-underline = ${colors.orange}
format-padding = 2

View file

@ -17,9 +17,8 @@
experimentalBackends = true; experimentalBackends = true;
extraOptions = '' extraOptions = ''
corner-radius = 10; corner-radius = 10;
rounded-cornes-exclude = [ rounded-corners-exclude = [
"class_g = 'Polybar'", "class_g = 'Polybar'"
"class_g = 'Rofi'"
] ]
round-borders = 1; round-borders = 1;