summaryrefslogtreecommitdiff
path: root/.config/polybar/config
blob: b20016cb6301dd0c0686e4d10ac95700be4b62c3 (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
; Danny's Polybar config

[colors]
trans = #00000000
white = #FFFFFF
black = #000000

bg = #341d63
bg-alt = #05668d
fg = #FFFFFF
fg-alt = #A9ABB0
urgent = #FF0000

; Global

[global/wm]
margin-top = 5
margin-bottom = 5

[bar/main0]
monitor = ${env:MONITOR:HDMI-A-2}
;monitor = ${env:MONITOR:eDP1}
width = 100%
height = 23
bottom = false
offset-x = 0%
offset-y = 0%
fixed-center = true
line-size = 2
background = ${colors.bg}
foreground = ${colors.fg}

overline-size = 0
overline-color = ${colors.bg}
underline-size = 2
underline-color = ${colors.bg}

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

; Fonts
font-0 = "PowerlineSymbols:pixelsize=15;3"
font-1 = "Fantasque Sans Mono:pixelsize=12;2"

; System tray
tray-position = left
tray-padding = 2
tray-transparent = false
tray-background = ${colors.bg-alt}

; Module layouts
modules-left = RightArrow3 i3 RightArrow2 xwindow RightArrow1 RightStripe RightArrow1
modules-center = RightStripe date LeftStripe
modules-right = arrow1 LeftStripe arrow1 filesystem arrow2 alsa arrow3 cpu arrow2 memory arrow3 updates

[bar/main1]
inherit = bar/main0
monitor = ${env:MONITOR:HDMI1}
tray-position = none
modules-left = i3 RightArrow2 xwindow RightArrow1 RightStripe RightArrow1

[bar/main2]
inherit = bar/main0
monitor = ${env:MONITOR:DisplayPort-2}
tray-position = none
modules-left = i3 RightArrow2 xwindow RightArrow1 RightStripe RightArrow1

; Modules

[module/filesystem]
type = internal/fs
interval = 5
fixed-values = true

mount-0 = /
mount-1 = /mnt/fileserver

format-mounted = <label-mounted>
format-mounted-foreground = ${colors.fg}
format-mounted-background = ${colors.bg-alt}
format-unmounted = <label-unmounted>
format-unmounted-foreground = ${colors.fg}
format-unmounted-background = ${colors.bg-alt}

label-mounted = "%mountpoint%: %percentage_used%%"
; %free%% %percentage_used%% %used%
label-mounted-foreground = ${colors.fg}
label-mounted-background = ${colors.bg-alt}
label-unmounted = %mountpoint%
label-unmounted-foreground = ${colors.bg}
label-unmounted-background = ${colors.fg}

[module/alsa]
type = internal/alsa

master-soundcard = default
master-mixer = Master

format-volume = <label-volume>
format-muted = <label-muted>
label-volume = VOL %percentage%%
label-muted = MUTED

format-volume-foreground = ${colors.fg}
format-volume-background = ${colors.bg}
format-muted-foreground = ${colors.fg}
format-muted-background = ${colors.bg}

[module/i3]
type = internal/i3
format = <label-state><label-mode>
index-sort = true
wrapping-scroll = false
pin-workspaces = true
enable-scroll = true

label-focused = %index%
label-focused-foreground = ${colors.fg}
label-focused-background = ${colors.bg}
label-focused-underline = ${colors.fg}
label-focused-padding = 2
label-focused-font = 1
label-unfocused = %index%
label-unfocused-padding = 2
label-unfocused-foreground = ${colors.fg}
label-unfocused-background = ${colors.bg}
label-occupied = %index%
label-occupied-foreground = ${colors.fg}
label-occupied-background = ${colors.bg}
label-occupied-padding = 2
label-urgent = %index%
label-urgent-foreground = ${colors.urgent}
label-urgent-background = ${colors.bg}
label-urgent-padding = 2
label-empty = %index%
label-empty-foreground = ${colors.bg}
label-empty-background = ${colors.fg}
label-empty-padding = 2
label-visible = %index%
label-visible-background = ${self.label-focused-background}
label-visible-underline = ${self.label-focused-underline}
label-visible-padding = ${self.label-focused-padding}
label-mode-foreground = ${colors.fg}
label-mode-background = ${colors.bg}

[module/xwindow]
type = internal/xwindow

format-foreground = ${colors.fg}
format-background = ${colors.bg-alt}
format-padding = 2
label = %title%
label-maxlen = 25

[module/xbacklight]
type = internal/xbacklight

format = <label>
label = Backlight %percentage%%

format-foreground = ${colors.fg}
format-background = ${colors.bg}
format-padding = 1

[module/backlight-acpi]
inherit = module/xbacklight
type = internal/backlight
card = intel_backlight

[module/cpu]
type = internal/cpu
interval = 2
format-prefix =
format-foreground = ${colors.fg}
format-background = ${colors.bg-alt}
label = CPU %percentage%%

[module/memory]
type = internal/memory
interval = 2
format-prefix =
format-foreground = ${colors.fg}
format-background = ${colors.bg}
format-margin-top = -5

label = MEM %percentage_used%%

[module/date]
type = internal/date
interval = 1

date = "%m/%d/%Y"
time = "%H:%M"

format-foreground = ${colors.fg}
format-background = ${colors.bg-alt}
format-padding = 2

label = %date% %time%

[module/battery]
type = internal/battery
; To list battery & adapter: $ ls -1 /sys/class/power_supply/
battery = BAT0
adapter = AC

format-charging = <label-charging>
format-charging-foreground = ${colors.bg}
format-charging-background = ${colors.fg}
format-discharging = <label-discharging>
format-discharging-foreground = ${colors.bg}
format-discharging-background = ${colors.fg}
format-full = <label-full>
format-full-foreground = ${colors.bg}
format-full-background = ${colors.fg}

label-charging = "BAT %percentage%%"
label-discharging = "BAT %percentage%%"
label-discharging-foreground = ${colors.bg}
label-full = "Battery Full"

; Powerline

[module/pipe]
type = custom/text
content = "|"
content-foreground = ${colors.fg}
content-background = ${colors.bg}
content-padding = 1

[module/LeftStripe]
type = custom/text
content = ""
content-foreground = ${colors.bg}
content-background = ${colors.bg-alt}

[module/arrow1]
type = custom/text
content = ""
content-foreground = ${colors.bg-alt}
content-background = ${colors.bg}

[module/arrow2]
type = custom/text
content = " "
content-foreground = ${colors.bg}
content-background = ${colors.bg-alt}

[module/arrow3]
type = custom/text
content = " "
content-foreground = ${colors.bg-alt}
content-background = ${colors.bg}

[module/RightStripe]
type = custom/text
content = ""
content-foreground = ${colors.bg}
content-background = ${colors.bg-alt}

[module/RightArrow1]
type = custom/text
content = ""
content-foreground = ${colors.bg-alt}
content-background = ${colors.bg}

[module/RightArrow2]
type = custom/text
content = ""
content-foreground = ${colors.bg}
content-background = ${colors.bg-alt}

[module/RightArrow3]
type = custom/text
content = ""
content-foreground = ${colors.bg-alt}
content-background = ${colors.bg}

[module/MiddleArrowLeft]
type = custom/text
content = "◥"
content-foreground = ${colors.fg}
content-background = ${colors.bg}

[module/MiddleArrowRight]
type = custom/text
content = "◢"
content-foreground = ${colors.bg}
content-background = ${colors.fg}

[module/updates]
type = custom/script
exec = pacman -Qu | wc -l
format = <label>
format-foreground = ${colors.fg}
format-background = ${colors.bg-alt}
format-padding = 1
label = Updates: %output%
interval = 90

[settings]
screenchange-reload = true