dotfiles/config/polybar/config
2024-11-30 21:52:04 +01:00

127 lines
2.7 KiB
Text

; ::::::::: ::: ::: ::::::::: ::: ::::::::: ::: :::::::::
; :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+:
; +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+
; +#+ +:+ +#+ +:+ +#++:++#+ +#++:++#++: +#++:++#+ +#++:++#++: +#++:++#:
; +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+
; #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+#
; ######### ######## ### ### ### ######### ### ### ### ###
[colors]
background = #000
foreground = #d4d4d4
alert = #000
balls = #d4d4d4
[bar/main]
width = 100%
height = 26
radius = 0
fixed-center = false
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 1
border-size = 0
border-color = #00000000
padding-left = 1
padding-right = 1
module-margin-left = 1
module-margin-right = 1
font-0 = Monocraft Nerd Font:style=Book:pixelsize=11;2
modules-left = i3 xwindow
modules-center =
modules-right = cpu pulseaudio date
[module/xkeyboard]
type = internal/xkeyboard
; List of indicators to ignore
blacklist-0 = num lock
blacklist-1 = scroll lock
label-indicator-on = "(CapsLook)"
[module/xwindow]
type = internal/xwindow
label = %title:0:30:...%
[module/i3]
type = internal/i3
format = "<label-state> <label-mode>"
index-sort = true
wrapping-scroll = false
pin-workspaces = true
label-mode-padding = 0
label-mode-foreground = {colors.balls}
label-mode-background = #000
label-focused = %index%
label-focused-background = #000
label-focused-padding = 1
label-focused-underline = #d4d4d4
label-unfocused = %index%
label-unfocused-padding = 1
label-visible = %index%
label-visible-background = #000
label-visible-underline = ${self.label-focused-underline}
label-visible-padding = ${self.label-focused-padding}
label-urgent = %index%
label-urgent-background = ${colors.alert}
label-urgent-padding = 1
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = " "
label = %percentage:2%%
[module/date]
type = internal/date
interval = 1.0
date = " %d/%m/%y  %I:%M:%S %p"
[module/battery]
type = internal/battery
full-at = 99
low-at = 5
battery = BAT1
adapter = AC
poll-interval = 0.5
time-format = %H:%M
format-charging = <label-charging>
format-discharging = <label-discharging>
label-charging = Charging %percentage%%
label-discharging = %percentage%%
label-full =  %percentage%%
[module/pulseaudio]
type = internal/pulseaudio
format-volume = <label-volume>
label-volume = " %percentage%%"
label-volume-foreground = ${root.foreground}
label-muted = "婢 muted"
label-muted-foreground = #50525f
[settings]
screenchange-reload = true
[global/wm]
margin-top = 5
margin-bottom = 5