Change summary
dot_config/polybar/config.tmpl | 220 ++++++++++++++++++++++++++++++++++++
1 file changed, 220 insertions(+)
Detailed changes
@@ -0,0 +1,220 @@
+[colors]
+background = ${xrdb:background}
+background-alt = ${xrdb:color8}
+foreground = ${xrdb:foreground}
+foreground-alt = ${xrdb:color4}
+primary = ${xrdb:color12}
+secondary = ${xrdb:color11}
+alert = ${xrdb:color4}
+
+[bar/top]
+width = 100%
+height = 23
+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 = 7
+
+font-0 = "Concourse C4:pixelsize=11;1"
+font-1 = "JetBrainsMono Nerd Font:style=Regular"
+
+modules-left = i3
+modules-center = xwindow
+{{- if eq .chezmoi.hostname "glade" }}
+modules-right = wlan pulseaudio cpu memory date battery
+{{- end}}
+{{- if eq .chezmoi.hostname "angmar" }}
+modules-right = updates mail wlan pulseaudio cpu memory date time
+{{- end }}
+
+cursor-click = pointer
+cursor-scroll = ns-resize
+
+[bar/bottom]
+width = 100%
+height = 23
+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 = 7
+
+font-0 = "Concourse C4:pixelsize=11;1"
+font-1 = "JetBrainsMono Nerd Font:style=Regular"
+
+modules-left = {{- if eq .chezmoi.hostname "glade" }} updates {{- end }}
+modules-center = mpd
+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 = <label-state> <label-mode>
+index-sort = true
+wrapping-scroll = false
+
+; Only show workspaces on the same output as the bar
+pin-workspaces = true
+
+label-mode-padding = 2
+label-mode-foreground = {colors.background}
+
+; focused = Active workspace on focused monitor
+label-focused = %index%
+label-focused-background = ${colors.background-alt}
+label-focused-underline= ${colors.primary}
+label-focused-padding = 2
+
+; unfocused = Inactive workspace on any monitor
+label-unfocused = %index%
+label-unfocused-padding = 2
+
+; 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.foreground-alt}
+label-urgent-underline = ${colors.foreground-alt}
+label-urgent-padding = 2
+
+[module/mail]
+type = custom/script
+exec = ~/.config/polybar/mail.sh
+interval = 5
+
+[module/mpd]
+type = internal/mpd
+format-online = <label-song>
+
+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 = wlp28s0
+interval = 3.0
+
+format-connected = <label-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 eq .chezmoi.hostname "angmar" }}
+date = " %Y-%m-%d"
+label = %date%
+
+[module/time]
+type = internal/date
+interval = 5
+time = %H:%M
+label = %time%
+{{- end }}
+
+[module/battery]
+type = internal/battery
+battery = BAT0
+adapter = AC
+
+format-charging = <animation-charging> <label-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 = <ramp-capacity> <label-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 =
+
+[module/pulseaudio]
+type = internal/pulseaudio
+
+format-volume = <ramp-volume> <label-volume>
+label-volume = %percentage%%
+label-volume-foreground = ${root.foreground}
+
+label-muted = ﱝ muted
+label-muted-foreground = ${colors.foreground-alt}
+
+ramp-volume-0 = "奄 "
+ramp-volume-1 = "奔 "
+ramp-volume-2 = "墳 "
+
+[module/updates]
+type = custom/script
+exec = ~/.config/polybar/updates-pacman-aurhelper.sh
+interval = 1800
+click-left = st zsh -c 'paru'
+
+[global/wm]
+margin-top = 5
+margin-bottom = 5
+
+; vim:ft=dosini