summaryrefslogtreecommitdiff
path: root/desktop-x11/.config/polybar/modules.ini
blob: c3b2d0eeb2f6993893f2e1145a4fad0cb1b50c83 (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
354
;==========================================================
;
;   ██████╗  ██████╗ ██╗  ██╗   ██╗██████╗  █████╗ ██████╗
;   ██╔══██╗██╔═══██╗██║  ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
;   ██████╔╝██║   ██║██║   ╚████╔╝ ██████╔╝███████║██████╔╝
;   ██╔═══╝ ██║   ██║██║    ╚██╔╝  ██╔══██╗██╔══██║██╔══██╗
;   ██║     ╚██████╔╝███████╗██║   ██████╔╝██║  ██║██║  ██║
;   ╚═╝      ╚═════╝ ╚══════╝╚═╝   ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝
;
;==========================================================

; Internal modules ------------------------------------------------------------

[module/date]
type = internal/date
interval = 5
time = %H:%M
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #0a6cf5

label = %time%

[module/xwindow]
type = internal/xwindow
label = %title:0:30:...%

[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock

format-prefix = " ⌨ "
format-prefix-foreground = ${colors.module-label-foreground}
format-prefix-background = #219ebc
format-foreground = ${colors.module-value-foreground}
format-background = ${colors.module-value-background}

label-layout = " %layout% "

label-indicator-padding = 2
label-indicator-margin = 1
label-indicator-background = ${colors.secondary}
label-indicator-underline = ${colors.secondary}

click-left = ~/.local/bin/fix-keyboard

[fs-base]
type = internal/fs
interval = 25

format-unmounted-prefix = ${self.format-mounted-prefix}
format-unmounted-prefix-foreground = ${self.format-mounted-prefix-foreground}
format-unmounted-prefix-background = ${self.format-mounted-prefix-background}

label-mounted = " %percentage_free%% free · %free% "
label-mounted-foreground = ${colors.module-value-foreground}
label-mounted-background = ${colors.module-value-background}

label-unmounted = " absent "
label-unmounted-foreground = ${colors.module-value-negative-foreground}
label-unmounted-background = ${colors.module-value-negative-background}

[module/fs-root]
inherit = fs-base
mount-0 = /
format-mounted-prefix = "  Root "
format-mounted-prefix-foreground = #005500
format-mounted-prefix-background = #b0e000

[module/fs-storage]
inherit = fs-base
mount-0 = /home/setanta/storage
format-mounted-prefix = "  External "
format-mounted-prefix-foreground = #b7f6b9
format-mounted-prefix-background = #347D39

[module/ewmh]
type = internal/xworkspaces

pin-workspaces = true
enable-click = true
enable-scroll = true
reverse-scroll = true

format = <label-state>

; Available tokens:
;   %name%
;   %icon%
;   %index%
; Default: %icon%  %name%
label-active = %name%
label-active-foreground = ${colors.primary}
label-active-background = #625233

label-occupied = %name%
label-occupied-foreground = ${colors.foreground}
label-occupied-background = ${colors.background-alt}

label-urgent = %name%
label-urgent-foreground = #ff3a03
label-urgent-background = #743021

label-font = 2.5

label-active-padding = 1
label-urgent-padding = 1
label-occupied-padding = 1
label-empty-padding = 1

[module/cpu]
type = internal/cpu
interval = 5
format = "<label>  <ramp-coreload> "
format-prefix = "  CPU "
format-prefix-foreground = #7b0000
format-prefix-background = #fe8700
format-foreground = ${colors.module-value-foreground}
format-background = ${colors.module-value-background}
label = " %percentage:2%% "
ramp-coreload-spacing = 2
ramp-coreload-0 = "%{O-12}%{F#999}▁"
ramp-coreload-1 = "%{O-12}%{F#977}▂"
ramp-coreload-2 = "%{O-12}%{F#955}▃"
ramp-coreload-3 = "%{O-12}%{F#931}▄"
ramp-coreload-4 = "%{O-12}%{F#900}▅"
ramp-coreload-5 = "%{O-12}%{F#B00}▆"
ramp-coreload-6 = "%{O-12}%{F#D00}▇"
ramp-coreload-7 = "%{O-12}%{F#F00}█"

[module/memory]
type = internal/memory
interval = 5
format = "<label> <bar-used> "
format-prefix = " Mem "
format-prefix-foreground = ${colors.module-label-foreground}
format-prefix-background = #a1c181
label = " %percentage_used%% "
format-foreground = ${colors.module-value-foreground}
format-background = ${colors.module-value-background}

bar-used-indicator =
bar-used-width = 8
bar-used-foreground-0 = ${module-value-intensity-1}
bar-used-foreground-1 = ${module-value-intensity-2}
bar-used-foreground-2 = ${module-value-intensity-3}
bar-used-foreground-3 = ${module-value-intensity-4}

bar-used-fill = ▐
bar-used-empty = ▐
bar-used-empty-foreground = #444444

ramp-used-0 = ▁
ramp-used-1 = ▂
ramp-used-2 = ▃
ramp-used-3 = ▄
ramp-used-4 = ▅
ramp-used-5 = ▆
ramp-used-6 = ▇
ramp-used-7 = █

ramp-free-0 = ▁
ramp-free-1 = ▂
ramp-free-2 = ▃
ramp-free-3 = ▄
ramp-free-4 = ▅
ramp-free-5 = ▆
ramp-free-6 = ▇
ramp-free-7 = █

[network-base]
type = internal/network
unknown-as-up = true
label-connected = "%{B#E7FFE7}%{F#4E8049} ↓%downspeed:8% %{B#FFE6E8}%{F#80494C} ↑%upspeed:8% %{B- F-}"
format-connected = <label-connected>
format-connected-foreground = ${colors.module-value-foreground}
format-connected-background = ${colors.module-value-background}
label-disconnected = " offline "
label-disconnected-foreground = ${colors.module-value-negative-foreground}
label-disconnected-background = ${colors.module-value-negative-background}
format-disconnected = <label-disconnected>
format-disconnected-prefix = ${self.format-connected-prefix}
format-disconnected-prefix-foreground = ${self.format-connected-prefix-foreground}
format-disconnected-prefix-background = ${self.format-connected-prefix-background}

[module/network-eth]
inherit = network-base
format-connected-prefix = " 🖧 Eth "
format-connected-prefix-foreground = #71CDFF
format-connected-prefix-background = #3F76BB

; FIXME: I don't know why, but inheritance is not working for wifi
[module/network-wifi]
type = internal/network
unknown-as-up = ${network-base.unknown-as-up}
label-connected = ${network-base.label-connected}
format-connected = ${network-base.format-connected}
; inherit = network-base
format-connected-prefix = " 📡 Wifi "
format-connected-prefix-foreground = #DBA3FF
format-connected-prefix-background = #8E69CA
format-connected-foreground = ${network-base.format-connected-foreground}
format-connected-background = ${network-base.format-connected-background}

label-disconnected = " offline "
label-disconnected-foreground = ${colors.module-value-negative-foreground}
label-disconnected-background = ${colors.module-value-negative-background}
format-disconnected = <label-disconnected>
format-disconnected-prefix = ${self.format-connected-prefix}
format-disconnected-prefix-foreground = ${self.format-connected-prefix-foreground}
format-disconnected-prefix-background = ${self.format-connected-prefix-background}

[module/pulseaudio]
type = internal/pulseaudio

format-volume = <label-volume> <bar-volume>
label-volume = " ♫ VOL %percentage%% "
label-volume-foreground = ${colors.module-label-foreground}
label-volume-background = #d0a0d0
label-muted = " ♫ muted "
label-muted-foreground = #666
bar-volume-width = 8
bar-volume-foreground-0 = ${colors.module-value-intensity-1}
bar-volume-foreground-1 = ${colors.module-value-intensity-1}
bar-volume-foreground-2 = ${colors.module-value-intensity-2}
bar-volume-foreground-3 = ${colors.module-value-intensity-2}
bar-volume-foreground-4 = ${colors.module-value-intensity-3}
bar-volume-foreground-5 = ${colors.module-value-intensity-3}
bar-volume-foreground-6 = ${colors.module-value-intensity-4}

bar-volume-gradient = false
bar-volume-indicator = |
bar-volume-indicator-font = 3
bar-volume-fill = ─
bar-volume-fill-font = 3
bar-volume-empty = ─
bar-volume-empty-font = 3

[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 60

; format-prefix = " 🌡Temp "
format-prefix = " Temp "
format = <label><ramp>
format-prefix-foreground = #3f4a47
format-prefix-background = #88b1b1
format-foreground = ${colors.module-value-foreground}
format-background = ${colors.module-value-background}

format-warn-prefix = " 🌡Temp "
format-warn = <label-warn><ramp>
format-warn-prefix-foreground = ${colors.module-value-foreground}
format-warn-prefix-background = ${self.format-prefix-background}

label = " %temperature-c% "
; label-foreground = ${colors.module-label-foreground}
; label-background = ${colors.module-label-background}
label-foreground = ${colors.module-value-foreground}
label-background = ${colors.module-value-background}

label-warn = " %temperature-c% "
label-warn-foreground = ${colors.module-value-foreground}
label-warn-background = ${colors.module-value-background}

ramp-0 = " ➊ "
ramp-1 = " ➋ "
ramp-2 = " ➌ "
ramp-background = ${colors.module-value-background}
ramp-0-foreground = ${colors.module-value-intensity-1}
ramp-1-foreground = ${colors.module-value-intensity-3}
ramp-2-foreground = ${colors.module-value-intensity-4}

[module/battery]
type = internal/battery
full-at = 99
low-at = 5
battery = BAT0
adapter = ADP1
poll-interval = 5
time-format = %H:%M
format-charging = <animation-charging> <label-charging>
format-discharging = <ramp-capacity> <label-discharging>
label-charging = Charging %percentage%%
label-discharging = Discharging %percentage%%
label-full = " ⚡ Fully charged "
label-full-foreground = #1a1a1a
label-full-background = #ffff00
label-low = BATTERY LOW
ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-3 = 
ramp-capacity-4 = 
bar-capacity-width = 10
animation-charging-0 = 
animation-charging-1 = 
animation-charging-2 = 
animation-charging-3 = 
animation-charging-4 = 
; Framerate in milliseconds
animation-charging-framerate = 750
animation-discharging-0 = 
animation-discharging-1 = 
animation-discharging-2 = 
animation-discharging-3 = 
animation-discharging-4 = 
; Framerate in milliseconds
animation-discharging-framerate = 500
animation-low-0 = !
animation-low-1 =
animation-low-framerate = 200

; [module/mpd]
; type = internal/mpd
;
; host = 127.0.0.1
; port = 6600
; interval = 2
; format-online = <label-time>  <label-song>
; label-song = %artist% - %title%
; label-offline = 🎜 mpd is offline

; Custom modules --------------------------------------------------------------

[module/calendar]
type = custom/script
exec = ~/.local/bin/clock
interval = 5
tail = true
format-prefix = " 📆 "
format-prefix-foreground = #e3e7ce
format-prefix-background = #076678
format-foreground = ${colors.module-value-foreground}
format-background = ${colors.module-value-background}
click-left = BLOCK_BUTTON=1 ~/.local/bin/clock
click-middle = BLOCK_BUTTON=2 ~/.local/bin/clock
click-right = BLOCK_BUTTON=3 ~/.local/bin/clock

[module/vpn]
type = custom/script
exec = ~/.local/bin/vpn
interval = 25
tail = true
format-prefix = " ♜ VPN "
format-prefix-foreground = #BE492A
format-prefix-background = #f99256
format-foreground = ${colors.module-value-foreground}
format-background = ${colors.module-value-background}
click-left = BLOCK_BUTTON=1 ~/.local/bin/vpn
click-middle = BLOCK_BUTTON=2 ~/.local/bin/vpn
click-right = BLOCK_BUTTON=3 ~/.local/bin/vpn

; vim:ft=dosini