summaryrefslogtreecommitdiffstats
path: root/.config/polybar/config##h.maus
blob: 15e98acc42810cbd4dd5c437f300e46e27354ddf (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
;==========================================================
;
;   ██████╗  ██████╗ ██╗  ██╗   ██╗██████╗  █████╗ ██████╗
;   ██╔══██╗██╔═══██╗██║  ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
;   ██████╔╝██║   ██║██║   ╚████╔╝ ██████╔╝███████║██████╔╝
;   ██╔═══╝ ██║   ██║██║    ╚██╔╝  ██╔══██╗██╔══██║██╔══██╗
;   ██║     ╚██████╔╝███████╗██║   ██████╔╝██║  ██║██║  ██║
;   ╚═╝      ╚═════╝ ╚══════╝╚═╝   ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝
;
;==========================================================

[colors]
background         = #2D2926
background_modules = #F6F4EA
foreground         = #F6F4EA
foreground_modules = #2D2926
red                = #CE3643
green              = #6AAFAA
sold_out_green     = #1DB954
yellow             = #D9C91A
blue               = #8AAAEB
purple             = #7F21AD
aqua               = #4CC9BE
orange             = #C24049

[bar/top]
monitor = DP-0
width = 100%
height = 20
offset-x = 0
offset-y = 0
radius = 0
fixed-center = true
enable-ipc = true

background = ${colors.background}
foreground = ${colors.foreground}

padding-right = 2
module-margin = 1

font-0 = scientifica:antialias=false;1
font-1 = Siji:size=20;1

modules-left = i3 pulseaudio-control spotify mpd github iss
modules-center = xwindow
modules-right = focus notification_pause memory cpu download upload date time

tray-position = right
separator = 

[module/github]
type = internal/github

token = ${file:/home/yigit/.local/share/polybar/github_token}
user = yigitsever
empty-notifications = false
interval = 10
api-url = https://api.github.com/

format = <label>
label = %notifications%

label-padding = 1

format-background = ${colors.background_modules}
format-foreground = ${colors.foreground_modules}

format-prefix = 
format-prefix-foreground = ${colors.background_modules}
format-prefix-background = ${colors.purple}
format-prefix-padding = 1

format-offline = <label-offline>
label-offline = Github offline

[module/iss]
type = custom/script
exec = /home/yigit/.config/polybar/scripts/space
interval = 5

[module/focus]
type = custom/script
exec = /home/yigit/.config/polybar/scripts/focus
double-click-left = exec /home/yigit/.config/polybar/scripts/stop &
interval = 10

[module/notification_pause]
type = custom/script
exec = /home/yigit/.config/polybar/scripts/notification_pause
interval = 5

[module/spotify]
type = custom/script
interval = 1

format-prefix = 
format-prefix-padding = 1
format-prefix-background = ${colors.sold_out_green}
format-prefix-foreground = ${colors.foreground_modules}
format = <label>
format-padding = 0
exec = python /usr/share/polybar/scripts/spotify_status.py -f '{play_pause} {artist} - {song}' -p ', '

[module/mpd]
type = internal/mpd

; <toggle> - gets replaced with <icon-(pause|play)>
format-online = <toggle><label-song> <icon-random> <icon-repeat>
label-song = %{F#080808}%artist% %{F#427b58}%title%
format-online-font = 4

icon-pause = 
icon-play = 
icon-random = 
icon-repeat = 

icon-play-foreground = ${colors.foreground}
icon-play-background = #b8bb26
icon-play-padding = 1

icon-pause-foreground = ${colors.foreground}
icon-pause-background = #9d0006
icon-pause-padding = 1

label-song-foreground = ${colors.foreground_modules}
label-song-background = ${colors.background_modules}
label-song-padding = 1

toggle-on-foreground = ${colors.background_modules}
toggle-off-foreground = #504945

format-offline = <label-offline>
label-offline = mpd is offline

[module/xwindow]
type = internal/xwindow
format = <label>
label = %title:0:70:...%

y-offset = 10
label-padding = 1

; there is a archlinux logo below
label-empty = 
label-empty-padding = 5

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

format = <label-layout> <label-indicator>
format-spacing = 0

format-prefix = 
format-prefix-padding = 1
format-prefix-background = ${colors.blue}
format-prefix-foreground = ${colors.foreground}

label-layout = %name%
label-layout-padding = 1
label-layout-background = ${colors.background_modules}
label-layout-foreground = ${colors.foreground_modules}

label-indicator-padding = 2
label-indicator-margin =
label-indicator-background = ${colors.red}

[module/i3]
type = internal/i3
format = <label-state>
index-sort = false
wrapping-scroll = false
strip-wsnumbers = true

ws-icon-default = 
ws-icon-0 = 0;
ws-icon-1 = 1;
ws-icon-2 = 2;
ws-icon-3 = 3;
ws-icon-4 = 4;
ws-icon-5 = 5;
ws-icon-6 = 6;
ws-icon-7 = 7;
ws-icon-8 = 8;
ws-icon-9 = 9;
ws-icon-10 = music;
ws-icon-11 = zotero;
ws-icon-12 = desktop;
ws-icon-13 = browser;
ws-icon-14 = steam;

label-mode-background = ${colors.background_modules}
label-mode-foreground = ${colors.foreground_modules}
label-mode-padding = 2

label-focused = %icon% %output:0:1%
label-focused-background = ${colors.green}
label-focused-foreground = ${colors.background_modules}
label-focused-padding = 1

label-unfocused = %icon%
label-unfocused-background = ${colors.background_modules}
label-unfocused-foreground = ${colors.foreground_modules}
label-unfocused-padding = 1

label-visible = %icon% %output:0:1%
label-visible-background = ${colors.blue}
label-visible-foreground = ${colors.foreground_modules}
label-visible-padding = 1

label-urgent = %icon%
label-urgent-background = ${colors.red}
label-urgent-foreground = ${colors.background_modules}
label-urgent-padding = 1

label-separator = " "
label-separator-foreground = ${colors.foreground}
label-separator-background = #504945

[module/memory]
type = internal/memory
format = <label> <bar-used>
label = %percentage_used%%

bar-used-indicator =
bar-used-width = 10
bar-used-foreground-0 = #55aa55
bar-used-foreground-1 = #557755
bar-used-foreground-2 = #f5a70a
bar-used-foreground-3 = #ff5555
bar-used-fill = |
bar-used-empty = |
bar-used-empty-foreground = #444444

[module/cpu]
type = internal/cpu
label = %percentage:3%%
format = <label>

format-prefix = 
format-prefix-background = ${colors.purple}
format-prefix-foreground = ${colors.foreground}
format-prefix-padding = 1

format-background = ${colors.background_modules}
format-foreground = ${colors.foreground_modules}

label-padding = 1

[module/download]
type = internal/network
interface = eno1
interval = 3.0

format-connected = <label-connected>

format-connected-prefix = 
format-connected-prefix-padding = 1
format-connected-prefix-background = ${colors.green}
format-connected-prefix-foreground = ${colors.foreground}

label-connected =  %downspeed:8%
label-connected-background = ${colors.background_modules}
label-connected-foreground = ${colors.foreground_modules}
label-connected-padding = 1

format-disconnected = <label-disconnected>
label-disconnected = %ifname% disconnected 

[module/upload]
type = internal/network
interface = eno1
interval = 3.0

format-connected = <label-connected>

format-connected-prefix = 
format-connected-prefix-padding = 1
format-connected-prefix-background = ${colors.yellow}
format-connected-prefix-foreground = ${colors.foreground}

label-connected = %upspeed:8%
label-connected-background = ${colors.background_modules}
label-connected-foreground = ${colors.foreground_modules}
label-connected-padding = 1

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

date = %Y-%m-%d %A
label = %date%
format = <label>

format-prefix = 
format-prefix-background = ${colors.orange}
format-prefix-foreground = ${colors.foreground}
format-prefix-padding = 1

label-background = ${colors.background_modules}
label-foreground = ${colors.foreground_modules}
label-padding = 1

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

time = %H:%M
label = %time%
format = <label>

format-prefix = 
format-prefix-background = ${colors.aqua}
format-prefix-foreground = ${colors.foreground}
format-prefix-padding = 1

label-background = ${colors.background_modules}
label-foreground = ${colors.foreground_modules}
label-padding = 1

[module/pulseaudio-control]
type = custom/script
tail = true
label = %output%
interval = 5

exec = /home/yigit/.config/polybar/scripts/pulseaudio_control --listen
click-right = exec pavucontrol &
click-left = /home/yigit/.config/polybar/scripts/pulseaudio_control --togmute
click-middle = /home/yigit/.config/polybar/scripts/pulseaudio_control --change
scroll-up = /home/yigit/.config/polybar/scripts/pulseaudio_control --up
scroll-down = /home/yigit/.config/polybar/scripts/pulseaudio_control --down
label-padding = 2
label-foreground = ${colors.foreground_modules}
label-background = ${colors.background_modules}

[settings]
screenchange-reload = true
compositing-background = source
compositing-foreground = source
compositing-border = over
pseudo-transparency = false

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

; vim:ft=dosini