[colors] background = ${xrdb:background} background-alt = ${xrdb:color8} foreground = ${xrdb:foreground} foreground-alt = ${xrdb:color0} primary = ${xrdb:color1} secondary = ${xrdb:color11} alert = ${xrdb:color11} [bar/top] width = 100% height = 27 fixed-center = true background = ${colors.background} foreground = ${colors.foreground} line-size = 0 padding-top = 100 padding-left = 0 padding-right = 2 module-margin-left = 1 module-margin-right = 3 font-0 = "{{ .font }}:pixelsize=11;1" font-1 = "JetBrainsMono NF:style=Regular:size=12;2" modules-left = i3 modules-center = xwindow {{- if ne .chezmoi.hostname "glade" }} modules-right = updates caffeine notifications mic pulseaudio cpu memory date time {{ if eq .chezmoi.hostname "sidhe" }}battery{{ end }} {{- else }} modules-right = wlan pulseaudio cpu memory date battery {{- end }} cursor-click = pointer cursor-scroll = ns-resize [bar/bottom] width = 100% height = 27 fixed-center = true bottom = true background = ${colors.background} foreground = ${colors.foreground} line-size = 0 padding-top = 100 padding-left = 0 padding-right = 2 module-margin-left = 1 module-margin-right = 3 font-0 = "{{ .font }}:pixelsize=11;1" font-1 = "JetBrainsMono Nerd Font:style=Regular" modules-left = {{- if eq .chezmoi.hostname "glade" }} updates {{- end }} modules-center = {{- if ne .chezmoi.hostname "glade" }} mpd {{- end }} modules-right = tray-position = right tray-padding = 2 cursor-click = pointer cursor-scroll = ns-resize [module/xwindow] type = internal/xwindow label = %title:0:30:...% [module/i3] type = internal/i3 format = index-sort = true wrapping-scroll = false ; Only show workspaces on the same output as the bar pin-workspaces = true label-mode-padding = 1 label-mode-foreground = ${colors.background} ; focused = Active workspace on focused monitor label-focused = %index% label-focused-background = ${colors.background-alt} label-focused-underline= ${colors.background-alt} label-focused-padding = 1 ; unfocused = Inactive workspace on any monitor label-unfocused = %index% label-unfocused-padding = 1 ; visible = Active workspace on unfocused monitor label-visible = %index% label-visible-background = ${self.label-focused-background} label-visible-underline = ${self.label-focused-underline} label-visible-padding = ${self.label-focused-padding} ; urgent = Workspace with urgency hint set label-urgent = %index% label-urgent-background = ${colors.alert} label-urgent-foreground = ${colors.background} label-urgent-underline = ${colors.alert} label-urgent-padding = 1 [module/mail] type = custom/script exec = ~/.config/polybar/mail.sh interval = 5 [module/mpd] type = internal/mpd format-online = label-song-maxlen = 50 label-song-ellipsis = true [module/cpu] type = internal/cpu interval = 2 format-prefix = " " format-prefix-foreground = ${colors.foreground} label = %percentage:2%% [module/memory] type = internal/memory interval = 2 format-prefix = " " format-prefix-foreground = ${colors.foreground} label = %percentage_used:2%% [module/wlan] type = internal/network interface = wlp2s0 interval = 3.0 format-connected = format-connected-underline = #9f78e1 label-connected = "" format-disconnected = "󰖪" [module/date] type = internal/date interval = 5 {{- if eq .chezmoi.hostname "glade" }} time = " %H:%M" date-alt = "󰃭 %Y-%m-%d" label = %time%%date% {{- end }} {{- if ne .chezmoi.hostname "glade" }} date = "󰃭 %Y-%m-%d" label = %date% [module/time] type = internal/date interval = 5 time =  %H:%M label = %time% {{- end }} {{ if ne .chezmoi.hostname "angmar" }} [module/battery] type = internal/battery {{- if eq .chezmoi.hostname "glade"}} battery = BAT0 adapter = AC {{- end }} {{- if eq .chezmoi.hostname "sidhe"}} battery = BAT1 adapter = ACAD {{- end }} format-full = label-full = %percentage%% format-charging = label-charging = %percentage%% animation-charging-0 = 󰢟 animation-charging-1 = 󰂆 animation-charging-2 = 󰂈 animation-charging-3 = 󰂉 animation-charging-4 = 󰂊 animation-charging-5 = 󰂋 animation-charging-6 = 󰂅 format-discharging = label-discharging = %percentage%% ramp-capacity-0 = 󰢟 ramp-capacity-1 = 󰢜 ramp-capacity-2 = 󰂆 ramp-capacity-3 = 󰂇 ramp-capacity-4 = 󰂈 ramp-capacity-5 = 󰢝 ramp-capacity-6 = 󰂉 ramp-capacity-7 = 󰢞 ramp-capacity-8 = 󰂊 ramp-capacity-9 = 󰂅 {{- end }} [module/pulseaudio] type = internal/pulseaudio format-volume = label-volume = %percentage%% label-volume-foreground = ${root.foreground} label-muted = " 󰝟 " label-muted-foreground = ${colors.background} label-muted-background = ${colors.primary} ramp-volume-0 = "󰕿" ramp-volume-1 = "󰖀" ramp-volume-2 = "󰕾" [module/updates] type = custom/script exec = ~/.local/bin/pending-updates interval = 1800 click-left = elacritty -e zsh -c 'yay' format-prefix = "󱄋 " [global/wm] margin-top = 5 margin-bottom = 5 [module/caffeine] type = custom/script trail = false exec = ~/.local/bin/caffeine status click-left = ~/.local/bin/caffeine toggle format =