Modified polybar

This commit is contained in:
marc
2022-11-06 15:35:47 +01:00
parent 0f4b895d38
commit c3dd5dda65
20 changed files with 353 additions and 207 deletions

View File

@@ -1,4 +1,7 @@
window:
opacity: 0.85
font:
size: 8
normal:
family: Iosevka Nerd Font
style: Regular

View File

@@ -0,0 +1,51 @@
include-file = colours.ini
include-directory = modules
[bar/base]
dpi = 96
width = 100%
height = 32
offset-x = 0
offset-y = 0
font-0 = "Iosevka:size=10;2"
font-1 = "Iosevka:size=16;2"
font-2 = "Iosevka:size=22;4"
background = ${colours.trans}
foreground = ${colours.white}
border-bottom-size = 5
border-top-size = 5
border-left-size = 10
border-right-size = 10
border-bottom-colour = ${colours.trans}
border-top-colour = ${colours.trans}
border-left-colour = ${colours.trans}
border-right-colour = ${colours.trans}
spacing = 0
padding-left = 0
padding-right = 0
module-margin-left = 0
[bar/bottom]
inherit = bar/base
bottom = true
modules-left = workspaces
modules-right = volume paddinglite battery
tray-position = center
tray-maxsize = 28
[bar/top]
inherit = bar/base
bottom = false
modules-left =
modules-center = date
modules-right = i3-mode

View File

@@ -0,0 +1,61 @@
[colours]
trans = #0000
white = #fff
black = #000
gray = #555
blue- = #498AD4
blue = #2B6CB6
blue+ = #173B63
xanadu- = #B3BCB6
xanadu = #808F85
xanadu+ = #606C64
green- = #CAE2CE
green = #91C499
green+ = #61A86D
linen- = #F9F5F0
linen = #F2E9DC
linen+ = #DEC6A6
pear- = #E8EB5C
pear = #CFD11A
pear+ = #8F9112
orange- = #FEB548
orange = #F18F01
orange+ = #A26201
[colours/date]
bg = ${colours.pear}
fg = ${colours.gray}
[colours/battery]
full-bg = ${colours.green+}
full-fg = ${colours.gray}
charging-bg = ${colours.green}
charging-fg = ${colours.gray}
discharging-bg = ${colours.green}
discharging-fg = ${colours.gray}
low-bg = ${colours.orange}
low-fg = ${colours.gray}
[colours/workspaces]
focused-bg = ${colours.linen+}
focused-fg = ${colours.gray}
unfocused-bg = ${colours.linen}
unfocused-fg = ${colours.gray}
urgent-bg = ${colours.orange-}
urgent-fg = ${colours.gray}
[colours/i3-mode]
bg = ${colours.orange}
fg = ${colours.gray}
[colours/volume]
volume-bg = ${colours.blue}
volume-fg = ${colours.white}
muted-bg = ${colours.blue-}
muted-fg = ${colours.white}

View File

@@ -0,0 +1,31 @@
[module/battery]
type = internal/battery
full-at = 100
low-at = 20
battery = BAT0
adapter = ADP0
poll-interval = 5
format-full = <label-full>
label-full = "%{T2}%{T-} %percentage%%"
label-full-background = ${colours/battery.full-bg}
label-full-foreground = ${colours/battery.full-fg}
label-full-padding = 1
format-charging = <label-charging>
label-charging = "%{T2}%{T-} %percentage%%"
label-charging-background = ${colours/battery.charging-bg}
label-charging-foreground = ${colours/battery.charging-fg}
label-charging-padding = 1
format-discharging = <label-discharging>
label-discharging = "%{T2}%{T-} %percentage%%"
label-discharging-background = ${colours/battery.discharging-bg}
label-discharging-foreground = ${colours/battery.discharging-fg}
label-discharging-padding = 1
format-low = <label-low>
label-low = "%{T2}%{T-} %percentage%%"
label-low-background = ${colours/battery.low-bg}
label-low-foreground = ${colours/battery.low-fg}
label-low-padding = 1

View File

@@ -0,0 +1,13 @@
[module/date]
type = internal/date
interval = 1.0
date = %A, %d %B %Y
time = %H:%M:%S
label = %date% · %time%
format = <label>
format-padding = 0
label-background = ${colours/date.bg}
label-foreground = ${colours/date.fg}
label-padding = 1

View File

@@ -0,0 +1,7 @@
[module/i3-mode]
type = internal/i3
format = <label-mode>
label-mode-background = ${colours/i3-mode.bg}
label-mode-foreground = ${colours/i3-mode.fg}
label-mode-padding = 2

View File

@@ -0,0 +1,13 @@
[module/padding]
type = custom/text
content = ||
content-padding = 1
content-foreground = ${colours.trans}
content-background = ${colours.trans}
[module/paddinglite]
type = custom/text
content = |
content-padding = .5
content-foreground = ${colours.trans}
content-background = ${colours.trans}

View File

@@ -0,0 +1,15 @@
[module/volume]
type = internal/pulseaudio
interval = 5
format-volume = <label-volume>
label-volume = %{T2}墳%{T-} %percentage%%
label-volume-padding = 1
label-volume-foreground = ${colours/volume.volume-fg}
label-volume-background = ${colours/volume.volume-bg}
format-muted = <label-muted>
label-muted = %{T2}ﱝ%{T-} muted
label-muted-padding = 1
label-muted-foreground = ${colours/volume.muted-fg}
label-muted-background = ${colours/volume.muted-bg}

View File

@@ -0,0 +1,22 @@
[module/workspaces]
type = internal/i3
format = <label-state>
index-sort = true
wrapping-scroll = false
strip-wsnumbers = true
pin-workspaces = true
label-focused = %index%
label-focused-background = ${colours/workspaces.focused-bg}
label-focused-foreground = ${colours/workspaces.focused-fg}
label-focused-padding = 2
label-unfocused = %index%
label-unfocused-background = ${colours/workspaces.unfocused-bg}
label-unfocused-foreground = ${colours/workspaces.unfocused-fg}
label-unfocused-padding = 2
label-urgent = %index%
label-urgent-background = ${colours/workspaces.urgent-bg}
label-urgent-foreground = ${colours/workspaces.urgent-fg}
label-urgent-padding = 2

View File

@@ -0,0 +1 @@
include-file = bars/bars.ini