i3, Polybar: Rice rice rice rice
This commit is contained in:
parent
a556c3bd07
commit
84578ba204
@ -30,7 +30,7 @@ workspace $w7 output $monsec
|
|||||||
font pango:Roboto 10
|
font pango:Roboto 10
|
||||||
new_window pixel 4
|
new_window pixel 4
|
||||||
focus_on_window_activation none
|
focus_on_window_activation none
|
||||||
gaps inner 6
|
gaps inner 4
|
||||||
|
|
||||||
set $red #ed1515
|
set $red #ed1515
|
||||||
set $green #11d116
|
set $green #11d116
|
||||||
|
@ -28,6 +28,10 @@ border = #31363b
|
|||||||
selection = #1d99f3
|
selection = #1d99f3
|
||||||
|
|
||||||
[res/config]
|
[res/config]
|
||||||
|
bar-width = 50
|
||||||
|
bar-fill = |
|
||||||
|
bar-empty = |
|
||||||
|
bar-indicator =
|
||||||
border-size = 4
|
border-size = 4
|
||||||
padding = 2
|
padding = 2
|
||||||
|
|
||||||
@ -45,35 +49,47 @@ background = ${res/colors.bg}
|
|||||||
foreground = ${res/colors.fg}
|
foreground = ${res/colors.fg}
|
||||||
border-color = ${res/colors.border}
|
border-color = ${res/colors.border}
|
||||||
tray-background = ${res/colors.bg}
|
tray-background = ${res/colors.bg}
|
||||||
height = 48
|
height = 32
|
||||||
width = 100%:-12
|
width = 100%:-12
|
||||||
offset-x = 6
|
offset-x = 6
|
||||||
|
padding = 2
|
||||||
border-left-size = ${res/config.border-size}
|
border-left-size = ${res/config.border-size}
|
||||||
border-right-size = ${res/config.border-size}
|
border-right-size = ${res/config.border-size}
|
||||||
font-0 = "Inconsolata:style=Medium:size=11;2"
|
font-0 = "Roboto:style=Regular:size=10;2"
|
||||||
font-1 = "Deja Vu Sans Mono:style=Regular:size=11;2"
|
font-1 = "Deja Vu Sans Mono:style=Regular:size=10;2"
|
||||||
|
|
||||||
[bar/primary]
|
[bar/primary]
|
||||||
monitor = ${env:PB_MONITOR:eDP-1}
|
monitor = ${env:PB_MONITOR:eDP-1}
|
||||||
|
bottom = false
|
||||||
|
inherit = template/bar
|
||||||
|
border-bottom-size = ${res/config.border-size}
|
||||||
|
modules-left = i3
|
||||||
|
modules-center = xwindow
|
||||||
|
|
||||||
|
[bar/primary-2]
|
||||||
|
monitor = ${env:PB_MONITOR:eDP-1}
|
||||||
inherit = template/bar
|
inherit = template/bar
|
||||||
border-top-size = ${res/config.border-size}
|
border-top-size = ${res/config.border-size}
|
||||||
modules-left = i3 cpu memory battery temp
|
modules-left = battery cpu memory
|
||||||
modules-right = backlight pulse date
|
modules-right = backlight pulse | date
|
||||||
|
|
||||||
## MODULES
|
## MODULES
|
||||||
|
[module/|]
|
||||||
|
type = custom/text
|
||||||
|
content = |
|
||||||
|
content-foreground = ${res/colors.gray}
|
||||||
|
|
||||||
[module/backlight]
|
[module/backlight]
|
||||||
type = internal/xbacklight
|
type = internal/xbacklight
|
||||||
format = <ramp> <label>
|
format = <bar>
|
||||||
label = %percentage:3%%
|
format-prefix = "BRI: "
|
||||||
ramp-foreground = ${res/colors.yellow}
|
format-prefix-foreground = ${res/colors.blue}
|
||||||
ramp-0 = ▁
|
bar-width = ${res/config.bar-width}
|
||||||
ramp-1 = ▂
|
bar-fill = ${res/config.bar-fill}
|
||||||
ramp-2 = ▃
|
bar-fill-foreground = ${res/colors.blue}
|
||||||
ramp-3 = ▄
|
bar-empty = ${res/config.bar-empty}
|
||||||
ramp-4 = ▅
|
bar-empty-foreground = ${res/colors.gray}
|
||||||
ramp-5 = ▆
|
bar-indicator = ${res/config.bar-indicator}
|
||||||
ramp-6 = ▇
|
|
||||||
ramp-7 = █
|
|
||||||
|
|
||||||
[module/battery]
|
[module/battery]
|
||||||
type = internal/battery
|
type = internal/battery
|
||||||
@ -81,42 +97,33 @@ full-at = 100
|
|||||||
time-format = %H:%M
|
time-format = %H:%M
|
||||||
interval = 15
|
interval = 15
|
||||||
|
|
||||||
format-charging = <ramp-capacity> <label-charging>
|
format-charging = <bar-capacity>
|
||||||
format-discharging = <ramp-capacity> <label-discharging>
|
format-charging-prefix = "Charging: "
|
||||||
format-full = <ramp-capacity> <label-full>
|
format-charging-prefix-foreground = ${res/colors.green}
|
||||||
label-charging = %percentage:3%%
|
format-discharging = <bar-capacity>
|
||||||
label-discharging = %percentage:3%%
|
format-discharging-prefix = "Battery: "
|
||||||
ramp-capacity-foreground = ${res/colors.green}
|
format-discharging-prefix-foreground = ${res/colors.green}
|
||||||
ramp-capacity-0 = ▁
|
format-full = <bar-capacity>
|
||||||
ramp-capacity-0-foreground = ${res/colors.red}
|
bar-capacity-width = ${res/config.bar-width}
|
||||||
ramp-capacity-1 = ▂
|
bar-capacity-fill = ${res/config.bar-fill}
|
||||||
ramp-capacity-1-foreground = ${res/colors.red}
|
bar-capacity-fill-foreground = ${res/colors.green}
|
||||||
ramp-capacity-2 = ▃
|
bar-capacity-empty = ${res/config.bar-empty}
|
||||||
ramp-capacity-3 = ▄
|
bar-capacity-empty-foreground = ${res/colors.gray}
|
||||||
ramp-capacity-4 = ▅
|
bar-capacity-indicator = ${res/config.bar-indicator}
|
||||||
ramp-capacity-5 = ▆
|
|
||||||
ramp-capacity-6 = ▇
|
|
||||||
ramp-capacity-7 = █
|
|
||||||
|
|
||||||
[module/cpu]
|
[module/cpu]
|
||||||
type = internal/cpu
|
type = internal/cpu
|
||||||
interval = 1
|
interval = 1
|
||||||
|
|
||||||
format = <ramp-coreload> <label>
|
format = <bar-load>
|
||||||
label = %percentage:3%%
|
format-prefix = "CPU: "
|
||||||
ramp-coreload-foreground = ${res/colors.blue}
|
format-prefix-foreground = ${res/colors.blue}
|
||||||
ramp-coreload-spacing = 1
|
bar-load-width = ${res/config.bar-width}
|
||||||
ramp-coreload-0 = ▁
|
bar-load-fill = ${res/config.bar-fill}
|
||||||
ramp-coreload-1 = ▂
|
bar-load-fill-foreground = ${res/colors.blue}
|
||||||
ramp-coreload-2 = ▃
|
bar-load-empty = ${res/config.bar-empty}
|
||||||
ramp-coreload-3 = ▄
|
bar-load-empty-foreground = ${res/colors.gray}
|
||||||
ramp-coreload-4 = ▅
|
bar-load-indicator = ${res/config.bar-indicator}
|
||||||
ramp-coreload-5 = ▆
|
|
||||||
ramp-coreload-5-foreground = ${res/colors.yellow}
|
|
||||||
ramp-coreload-6 = ▇
|
|
||||||
ramp-coreload-6-foreground = ${res/colors.yellow}
|
|
||||||
ramp-coreload-7 = █
|
|
||||||
ramp-coreload-7-foreground = ${res/colors.red}
|
|
||||||
|
|
||||||
[module/date]
|
[module/date]
|
||||||
type = internal/date
|
type = internal/date
|
||||||
@ -149,66 +156,34 @@ label-visible-padding = ${res/config.padding}
|
|||||||
[module/memory]
|
[module/memory]
|
||||||
type = internal/memory
|
type = internal/memory
|
||||||
|
|
||||||
format = <ramp-used> <ramp-swap-used> <label>
|
format = <bar-used> <label>
|
||||||
|
format-prefix = "Memory: "
|
||||||
|
format-prefix-foreground = ${res/colors.magenta}
|
||||||
label = %gb_free:8%
|
label = %gb_free:8%
|
||||||
ramp-used-foreground = ${res/colors.magenta}
|
bar-used-width = ${res/config.bar-width}
|
||||||
ramp-used-0 = ▁
|
bar-used-fill = ${res/config.bar-fill}
|
||||||
ramp-used-1 = ▂
|
bar-used-fill-foreground = ${res/colors.magenta}
|
||||||
ramp-used-2 = ▃
|
bar-used-empty = ${res/config.bar-empty}
|
||||||
ramp-used-3 = ▄
|
bar-used-empty-foreground = ${res/colors.gray}
|
||||||
ramp-used-4 = ▅
|
bar-used-indicator = ${res/config.bar-indicator}
|
||||||
ramp-used-5 = ▆
|
|
||||||
ramp-used-5-foreground = ${res/colors.yellow}
|
|
||||||
ramp-used-6 = ▇
|
|
||||||
ramp-used-6-foreground = ${res/colors.yellow}
|
|
||||||
ramp-used-7 = █
|
|
||||||
ramp-used-7-foreground = ${res/colors.red}
|
|
||||||
ramp-swap-used-foreground = ${res/colors.magenta}
|
|
||||||
ramp-swap-used-0 = ▁
|
|
||||||
ramp-swap-used-1 = ▂
|
|
||||||
ramp-swap-used-2 = ▃
|
|
||||||
ramp-swap-used-3 = ▄
|
|
||||||
ramp-swap-used-4 = ▅
|
|
||||||
ramp-swap-used-5 = ▆
|
|
||||||
ramp-swap-used-5-foreground = ${res/colors.yellow}
|
|
||||||
ramp-swap-used-6 = ▇
|
|
||||||
ramp-swap-used-6-foreground = ${res/colors.yellow}
|
|
||||||
ramp-swap-used-7 = █
|
|
||||||
ramp-swap-used-7-foreground = ${res/colors.red}
|
|
||||||
|
|
||||||
[module/pulse]
|
[module/pulse]
|
||||||
type = internal/pulseaudio
|
type = internal/pulseaudio
|
||||||
format-volume = <ramp-volume> <label-volume>
|
format-volume = <bar-volume> <label-volume>
|
||||||
format-muted = <ramp-volume> <label-muted>
|
format-volume-prefix = "Volume: "
|
||||||
format-muted-foreground = ${res/colors.red}
|
format-volume-foreground = ${res/colors.blue}
|
||||||
|
format-muted = <bar-volume> <label-muted>
|
||||||
|
format-muted-prefix = "Volume: "
|
||||||
|
format-muted-prefix-foreground = ${res/colors.blue}
|
||||||
label-muted = %percentage%%
|
label-muted = %percentage%%
|
||||||
label-muted-foreground = ${res/colors.red}
|
label-muted-foreground = ${res/colors.gray}
|
||||||
ramp-volume-foreground = ${res/colors.cyan}
|
bar-volume-width = ${res/config.bar-width}
|
||||||
ramp-volume-0 = ▁
|
bar-volume-fill = ${res/config.bar-fill}
|
||||||
ramp-volume-1 = ▂
|
bar-volume-fill-foreground = ${res/colors.blue}
|
||||||
ramp-volume-2 = ▃
|
bar-volume-empty = ${res/config.bar-empty}
|
||||||
ramp-volume-3 = ▄
|
bar-volume-empty-foreground = ${res/colors.gray}
|
||||||
ramp-volume-4 = ▅
|
bar-volume-indicator = ${res/config.bar-indicator}
|
||||||
ramp-volume-5 = ▆
|
|
||||||
ramp-volume-6 = ▇
|
|
||||||
ramp-volume-7 = █
|
|
||||||
|
|
||||||
[module/temp]
|
[module/xwindow]
|
||||||
type = internal/temperature
|
type = internal/xwindow
|
||||||
units = true
|
label = %title:40%
|
||||||
warn-temperature = 80
|
|
||||||
format = <ramp> <label>
|
|
||||||
format-warn = <ramp> <label-warn>
|
|
||||||
label = %temperature-c:6%
|
|
||||||
label-warn = %temperature-c:6%
|
|
||||||
label-warn-foreground = ${res/colors.red}
|
|
||||||
ramp-foreground = ${res/colors.yellow}
|
|
||||||
ramp-0 = ▁
|
|
||||||
ramp-1 = ▂
|
|
||||||
ramp-2 = ▃
|
|
||||||
ramp-3 = ▄
|
|
||||||
ramp-4 = ▅
|
|
||||||
ramp-5 = ▆
|
|
||||||
ramp-6 = ▇
|
|
||||||
ramp-7 = █
|
|
||||||
ramp-7-foreground = ${res/colors.red}
|
|
||||||
|
Reference in New Issue
Block a user