aboutsummaryrefslogtreecommitdiff
path: root/.config/polybar/config
blob: f718a84f727765b17e9dd5e7f452f6fdbf55b70a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
[barsettings]
padding = 1.9

[global/wm]
margin-bottom = 50
margin-top = 0

[bar/main]

; tray-position = right
; tray-padding = ${barsettings.padding}
; tray-background = ${color.bg}
; tray-margin = 0

monitor =

monitor-fallback =

monitor-strict = false

override-redirect = false

bottom = false

fixed-center = true

width = 100%
height = 16

offset-x = 0
offset-y = 0

background = ${color.alpha}

foreground = ${color.fg}

radius-top = 0.0
radius-bottom = 0.0

padding = 0

module-margin-left = 0
module-margin-right = 0

font-0 = "Scientifica-11.bdf:pixelsize=11:weight=regular:size=4;2"
font-1 = "Weather Icons:antialias=false:size=6;2"
font-2 = "Siji:size=8;2"
font-3 = "Material Design Icons:antialias=false:size=8;2"
font-4 = "Fira Code:size=10;2"

modules-center = onstart time weather date alsa

separator =

spacing = 0

dim-value = 1.0

wm-name = 

locale = 

wm-restack = i3

enable-ipc = true

click-left = 
click-middle = 
click-right =
scroll-up =
scroll-down =
double-click-left =
double-click-middle =
double-click-right =

cursor-click = 
cursor-scroll = 

[settings]
throttle-output = 5
throttle-output-for = 10

throttle-input-for = 30

screenchange-reload = false

compositing-background = source
compositing-foreground = over
compositing-overline = over
compositing-underline = over
compositing-border = over

format-foreground = 
format-background = 
format-underline =
format-overline =
format-spacing =
format-padding =
format-margin =
format-offset =

pseudo-transparency = false

[color]

bg = #050505
fg = #f0f0f0
fg-alt = #050505

alpha = #00000000

[module/alsa]
type = internal/alsa

format-volume = <ramp-volume> <label-volume>
format-volume-background = ${color.bg}
format-volume-foreground = ${color.fg}
format-volume-padding = ${barsettings.padding}

label-volume = %percentage%%

format-muted-prefix = " "
format-muted-background = ${color.fg}
format-muted-foreground = ${color.bg}
format-muted-padding = ${barsettings.padding}
label-muted = "Muted"

ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-2 = 

ramp-headphones-0 = 
ramp-headphones-1 = 

[module/battery]
type = internal/battery

full-at = 99
battery = BAT1
adapter = ACAD
poll-interval = 2
time-format = %H:%M

format-charging = <animation-charging> <label-charging>
format-charging-background = ${color.shade3}
format-charging-foreground = ${color.fg-alt}
format-charging-padding = ${barsettings.padding}

format-discharging = <ramp-capacity> <label-discharging>
format-discharging-background = ${color.shade3}
format-discharging-foreground = ${color.fg-alt}
format-discharging-padding = ${barsettings.padding}

format-full = <label-full>
format-full-background = ${color.shade3}
format-full-foreground = ${color.fg-alt}
format-full-padding = ${barsettings.padding}

label-charging = %percentage%%
label-discharging = %percentage%%
label-full = 100% Charged

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 = 

animation-charging-0 = 
animation-charging-1 = 
animation-charging-2 = 
animation-charging-3 = 

animation-charging-framerate = 750

[module/cpu]
type = internal/cpu

interval = 1

format = <label>
format-prefix = 󰍛
format-background = ${color.bg}
format-foreground = ${color.shade2}
format-padding = ${barsettings.padding}

label = " %percentage%%"

[module/date]
type = internal/date
interval = 1.0
time =  %A, %B %d
format = <label>
format-background = ${color.bg}
format-foreground = ${color.fg}
format-padding = ${barsettings.padding}

label = %time%

[module/time]
type = internal/date
interval = 1.0
time =  %H:%M
format = <label>
format-background = ${color.bg}
format-foreground = ${color.fg}
format-padding = ${barsettings.padding}

label = %time%

[module/memory]
type = internal/memory

interval = 3

format = <label>
format-prefix = 󰘚
format-background = ${color.bg}
format-foreground = ${color.fg}
format-padding = ${barsettings.padding}

label = " %mb_used%"

[module/packages]
type = custom/script
exec = echo "󰏗 `pacman -Q | wc -l`"
format-padding = ${barsettings.padding}
interval = 60
format-background = ${color.bg}
format-foreground = ${color.shade3}

[module/player-mpris-simple]
type = custom/script
exec = ~/.config/polybar/player-mpris-simple.sh
interval = 3
format-background = ${color.bg}
format-foreground = ${color.fg}
format-padding = ${barsettings.padding}
click-middle = playerctl previous &
click-right = playerctl next &
click-left = playerctl play-pause &

[module/weather]
type = custom/script
exec = ~/.config/polybar-forecast/target/release/polybar-forecast
interval = 120
exec-if = ping openweathermap.org -c 1
label-font = 2
format-background = ${color.bg}
format-foreground = ${color.fg}
format-padding = ${barsettings.padding}

[module/whoami]
type = custom/script
exec = echo "$(whoami)@$(hostname)"
interval = 9999999
label-font = 2
format-background = ${color.shade1}
format-foreground = ${color.fg}
format-padding = ${barsettings.padding}

[module/intip]
type = custom/script
exec = echo "$(ifconfig | grep -Po --color=never '(?<=inet addr:)(192\.\d+.\d+\.\d+)')"
interval = 9999999
label-font = 2
format-background = ${color.shade3}
format-foreground = ${color.fg-alt}
format-padding = ${barsettings.padding}
[module/extip]
type = custom/script
exec = echo "$(curl -s ifconfig.me)"
interval = 9999999
label-font = 2
format-background = ${color.shade3}
format-foreground = ${color.fg-alt}
format-padding = ${barsettings.padding}

[module/network]
type = internal/network
interface = wlan0

interval = 1.0
accumulate-stats = true
unknown-as-up = true

format-connected = <ramp-signal> <label-connected>
format-connected-background = ${color.shade2}
format-connected-foreground = ${color.fg-alt}
format-connected-padding = ${barsettings.padding}

format-disconnected = <label-disconnected>
format-disconnected-background = ${color.shade2}
format-disconnected-foreground = ${color.fg-alt}
format-disconnected-padding = ${barsettings.padding}

label-connected = %essid%
label-disconnected =  Disconnected

ramp-signal-0 = 
ramp-signal-1 = 
ramp-signal-2 = 
ramp-signal-3 = 
ramp-signal-4 = 

; [module/i3]
; type = internal/xworkspaces

; pin-workspaces = true

; enable-click = true
; enable-scroll = true

; format = <label-state>
; format-padding = 0

; label-monitor = %name%

; label-active = %name%
; label-active-foreground = ${color.bg}
; label-active-background = ${color.shade5}

; label-occupied = %icon%
; label-occupied-underline = ${color.bg}

; label-urgent = %icon%
; label-urgent-foreground = ${color.fg}
; label-urgent-background = ${color.bg}

; label-empty = %name%
; label-empty-background = ${color.bg}
; label-empty-foreground = ${color.fg}

; label-active-padding = ${barsettings.padding}
; label-urgent-padding = ${barsettings.padding}
; label-occupied-padding = ${barsettings.padding}
; label-empty-padding = ${barsettings.padding}

[module/onstart]
type = custom/script
exec = sh ~/.config/polybar/onstart.sh > /dev/null
interval = 999999999
format-background = ${color.alpha}
format-foreground = #ff00ff
format-padding = 0


; vim:ft=dosini