config.tmpl

  1[colors]
  2background = ${xrdb:background}
  3background-alt = ${xrdb:color8}
  4foreground = ${xrdb:foreground}
  5foreground-alt = ${xrdb:color4}
  6primary = ${xrdb:color12}
  7secondary = ${xrdb:color11}
  8alert = ${xrdb:color4}
  9
 10[bar/top]
 11width = 100%
 12height = 23
 13fixed-center = true
 14
 15background = ${colors.background}
 16foreground = ${colors.foreground}
 17
 18line-size = 0
 19
 20padding-top = 100
 21padding-left = 0
 22padding-right = 2
 23
 24module-margin-left = 1
 25module-margin-right = 7
 26
 27font-0 = "Concourse C4:pixelsize=11;1"
 28font-1 = "JetBrainsMono Nerd Font:style=Regular"
 29
 30modules-left = i3
 31modules-center = xwindow
 32{{- if eq .chezmoi.hostname "glade" }}
 33modules-right = wlan pulseaudio cpu memory date battery
 34{{- end}}
 35{{- if eq .chezmoi.hostname "angmar" }}
 36modules-right = updates mail wlan pulseaudio cpu memory date time
 37{{- end }}
 38
 39cursor-click = pointer
 40cursor-scroll = ns-resize
 41
 42[bar/bottom]
 43width = 100%
 44height = 23
 45fixed-center = true
 46bottom = true
 47
 48background = ${colors.background}
 49foreground = ${colors.foreground}
 50
 51line-size = 0
 52
 53padding-top = 100
 54padding-left = 0
 55padding-right = 2
 56
 57module-margin-left = 1
 58module-margin-right = 7
 59
 60font-0 = "Concourse C4:pixelsize=11;1"
 61font-1 = "JetBrainsMono Nerd Font:style=Regular"
 62
 63modules-left = {{- if eq .chezmoi.hostname "glade" }} updates {{- end }}
 64modules-center = mpd
 65modules-right =
 66
 67tray-position = right
 68tray-padding = 2
 69
 70cursor-click = pointer
 71cursor-scroll = ns-resize
 72
 73[module/xwindow]
 74type = internal/xwindow
 75label = %title:0:30:...%
 76
 77[module/i3]
 78type = internal/i3
 79format = <label-state> <label-mode>
 80index-sort = true
 81wrapping-scroll = false
 82
 83; Only show workspaces on the same output as the bar
 84pin-workspaces = true
 85
 86label-mode-padding = 2
 87label-mode-foreground = {colors.background}
 88
 89; focused = Active workspace on focused monitor
 90label-focused = %index%
 91label-focused-background = ${colors.background-alt}
 92label-focused-underline= ${colors.background-alt}
 93label-focused-padding = 2
 94
 95; unfocused = Inactive workspace on any monitor
 96label-unfocused = %index%
 97label-unfocused-padding = 2
 98
 99; visible = Active workspace on unfocused monitor
100label-visible = %index%
101label-visible-background = ${self.label-focused-background}
102label-visible-underline = ${self.label-focused-underline}
103label-visible-padding = ${self.label-focused-padding}
104
105; urgent = Workspace with urgency hint set
106label-urgent = %index%
107label-urgent-background = ${colors.alert}
108label-urgent-foreground = ${colors.foreground}
109label-urgent-underline = ${colors.foreground}
110label-urgent-padding = 2
111
112[module/mail]
113type = custom/script
114exec = ~/.config/polybar/mail.sh
115interval = 5
116
117[module/mpd]
118type = internal/mpd
119format-online = <label-song>
120
121label-song-maxlen = 50
122label-song-ellipsis = true
123
124[module/cpu]
125type = internal/cpu
126interval = 2
127format-prefix = " "
128format-prefix-foreground = ${colors.foreground}
129label = %percentage:2%%
130
131[module/memory]
132type = internal/memory
133interval = 2
134format-prefix = "  "
135format-prefix-foreground = ${colors.foreground}
136label = %percentage_used:2%%
137
138[module/wlan]
139type = internal/network
140interface = wlp28s0
141interval = 3.0
142
143format-connected = <label-connected>
144format-connected-underline = #9f78e1
145label-connected = "歷 "
146
147format-disconnected = "轢 "
148
149[module/date]
150type = internal/date
151interval = 5
152{{- if eq .chezmoi.hostname "glade" }}
153time =   %H:%M
154date-alt = "  %Y-%m-%d"
155label = %time%%date%
156{{- end }}
157{{- if eq .chezmoi.hostname "angmar" }}
158date = "  %Y-%m-%d"
159label = %date%
160
161[module/time]
162type = internal/date
163interval = 5
164time =   %H:%M
165label = %time%
166{{- end }}
167
168{{- if eq .chezmoi.hostname "glade" }}
169[module/battery]
170type = internal/battery
171battery = BAT0
172adapter = AC
173
174format-charging = <animation-charging>  <label-charging>
175label-charging = %percentage%%
176animation-charging-0 = 
177animation-charging-1 = 
178animation-charging-2 = 
179animation-charging-3 = 
180animation-charging-4 = 
181animation-charging-5 = 
182animation-charging-6 = 
183
184format-discharging = <ramp-capacity> <label-discharging>
185label-discharging = %percentage%%
186ramp-capacity-0 = 
187ramp-capacity-1 = 
188ramp-capacity-2 = 
189ramp-capacity-3 = 
190ramp-capacity-4 = 
191ramp-capacity-5 = 
192ramp-capacity-6 = 
193ramp-capacity-7 = 
194ramp-capacity-8 = 
195ramp-capacity-9 = 
196{{- end }}
197
198[module/pulseaudio]
199type = internal/pulseaudio
200
201format-volume = <ramp-volume> <label-volume>
202label-volume =  %percentage%%
203label-volume-foreground = ${root.foreground}
204
205label-muted = ﱝ  muted
206label-muted-foreground = ${colors.foreground-alt}
207
208ramp-volume-0 = "奄 "
209ramp-volume-1 = "奔 "
210ramp-volume-2 = "墳 "
211
212[module/updates]
213type = custom/script
214exec = ~/.config/polybar/updates-pacman-aurhelper.sh
215interval = 1800
216click-left = st zsh -c 'paru'
217
218[global/wm]
219margin-top = 5
220margin-bottom = 5
221
222; vim:ft=dosini