nicer polybar

nixos
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%),
; 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%:-20
width = 100%
height = 30
; 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:
; 50%:-10, this will result in an offset in the x or y direction
; of 50% minus 10 pixels
offset-x = 10
offset-y = 5
offset-x = 0
offset-y = 0
; Background ARGB color (e.g. #f00, #ff992a, #ddff1023)
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
; Individual side values can be defined using:
; padding-{left,right}
padding-left = 1
padding-right = 1
padding = 0
; 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 = 0
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

View File

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

View File

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