-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig-xmonad
356 lines (332 loc) · 9.86 KB
/
config-xmonad
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
355
356
; =======================================================================================
; _________.__ .___ ___. ________ _______
; / _____/| |__ _____ __| _/____\_ |__ _____ _______ \_____ \ \ _ \
; \_____ \ | | \\__ \ / __ |/ _ \| __ \\__ \\_ __ \ / ____/ / /_\ \
; / \| Y \/ __ \_/ /_/ ( <_> ) \_\ \/ __ \| | \/ / \ \ \_/ \
; /_______ /|___| (____ /\____ |\____/|___ (____ /__| \_______ \ /\ \_____ /
; \/ \/ \/ \/ \/ \/ \/ \/ \/
;
;=============================================================================================
; Colors {{{
[colors]
background = #aa09090d
foreground = #8897F4
uo_linecolor = #7E57C0
workspace_focused = #2f2f4a80
workspace_empty = #1ea69d
workspace_urgent = #cc2f54
workspace_dim = #555
tile_grid = #614df7
mint_accent = #2fccaa
warning = #ba5f76
urgent = #ad3939
critical = #b3143e
vol_mute = #6b6b6b
; }}}
; Shadobar {{{
[bar/shadobar]
enable-ipc=true
height = 25
width = 100%
background = ${colors.background}
foreground = ${colors.foreground}
top = true
line-size = 2
font-0=Iosevka:size=11;3
font-1=Font Awesome 5 Free Solid:size=11;3"
font-2=Font Awesome 5 Free Regular:size=10;3
font-3=Font Awesome 5 Brands:size=11;3
font-4=font\-logos:size=14;3
font-5=IPAGothic:size=12:antialias=true;3
font-6="M+ 1m:style=Medium:size=16;3"
modules-left = launcher xmonad
modules-center = mpd
modules-right = time overflow pulseaudio cpu memory battery power
; }}}
; --------------------------------------------------------------------------------------------
; Layout {{{
[layout]
icon-font = 6
icon-padding = 1
bar-format = %{T3}%fill%%indicator%%{F#322240}%empty%%{F-}
;bar-format = %{T3}%fill%%indicator%%{F#dc404040}%empty%%{F-}
;bar-fill-icon = ▰
bar-fill-icon =
;bar-fill-icon =
wm-restack = xmonad
; }}}
; --------------------------------------------------------------------------------------------
; Modules:
; --------------------------------------------------------------------------------------------
; Launcher {{{
[module/launcher]
type=custom/text
content = " "
content-font=1
content-foreground=#ff79c6
content-padding=1
click-left="dmenu_run"
; }}}
; XWindow {{{
[module/xwindow]
type = internal/xwindow
label = %title:0:40:...%
label-color1 = ${colors.foreground}
label-background = ${colors.background}
; }}}
; Xmonad {{{
[module/xmonad]
type = custom/script
exec = xmonad-log
monitor-strict = false
override-redirect = false
enable-ipc=true
tail = true
; }}}
;Power {{{
[module/power]
type = custom/text
content =
content-foreground = #ff79c6
click-left = ~/.config/rofi/scripts/menu_powermenu.sh
content-padding = 3
; }}}
; Sep {{{
[module/sep]
type = custom/text
content = " "
content-foreground = ${colors.foreground}
; }}}
; Overflow {{{
[module/overflow]
type = custom/menu
expand-right = false
format-spacing = 0
format-foreground = #87b0d6
;format-foreground = #7060e6
format-padding = 1
label-open = " "
label-close = " "
label-separator = " "
menu-0-0 = " "
menu-0-0-exec = ~/.config/rofi/scripts/network.sh
menu-0-1 = " "
menu-0-1-exec = "firefox https://github.com/Shadorain"
; }}}
; MPD {{{
[module/mpd]
type = internal/mpd
host = 127.0.0.1
port = 6600
format-online-font = 1
format-online = %{A4:mpc seek +5:}%{A5:mpc seek -5:}<icon-prev> <toggle> <icon-next> %{A1:~/.config/rofi/scripts/mpd.sh:}<label-song>%{A}<label-time>%{A}%{A}
format-online-padding = 2 1
format-online-foreground = #d9bff2
format-online-background = ${colors.background}
label-song-foreground = #d9bff2
label-song-background = ${colors.background}
label-song-padding = 2
label-time-foreground = #d9bff2
label-time-background = ${colors.background}
label-time-padding = 1
format-online-overline = ${colors.uo_linecolor}
format-offline = <label-offline>
label-offline =
format-offline-padding = 2
format-offline-foreground = #d9bff2
format-offline-background = ${colors.background}
bar-progress-width = 35
bar-progress-indicator = |
bar-progress-fill = ─
bar-progress-empty = ─
icon-prev =
icon-stop =
icon-play =
icon-pause =
icon-next =
label-song-maxlen = 75
label-song-ellipsis = true
; }}}
; CPU {{{
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = "%{F#8897f4}|%{F-}%{F#7757d9} %{F-}"
format-padding = 1
format = <label>
;<bar-load>
format-foreground = #7757d9
label = %percentage%%
bar-load-font = ${layout.icon-font}
bar-load-width = 11
bar-load-fill = ${layout.bar-fill-icon}
bar-load-indicator =
bar-load-empty = ${layout.bar-fill-icon}
bar-load-format = ${layout.bar-format}
bar-load-foreground-0 = #7757d9
bar-load-foreground-5 = ${colors.urgent}
bar-load-foreground-9 = ${colors.critical}
; }}}
; Memory {{{
[module/memory]
type = internal/memory
interval = 2
format-padding = 1
format = <label>
;<bar-used>
format-prefix = " "
;format-foreground = #b4a1f0
format-foreground = #943d84
label = %percentage_used%%
bar-used-font = ${layout.icon-font}
bar-used-width = 9
bar-used-fill = ${layout.bar-fill-icon}
bar-used-indicator =
bar-used-empty = ${layout.bar-fill-icon}
bar-used-format = ${layout.bar-format}
bar-used-foreground-0 = #943d84
bar-used-foreground-4 = ${colors.urgent}
bar-used-foreground-8 = ${colors.critical}
; }}}
; Net {{{
[module/net]
type = custom/script
exec = ~/.config/scripts/net_pbar
label = %output%
interval = 3
tail = true
click-left = ~/.config/rofi/scripts/network.sh
label-padding = 2
; }}}
; Time {{{
[module/time]
type = internal/date
interval = 1.0
time = %H:%M
date = %d %b
label = %{A1:notify-send "This Month" "$(cal --color=always | sed "s/..7m/<b><span color=\"purple\">/;s/..27m/<\/span><\/b>/")" && notify-send "Appointments" "$(calcurse -D ~/.config/calcurse -d3)":}%{A2:setsid -f "$TERMINAL" calcurse -D ~/.config/calcurse:}%{A3:setsid -f "$TERMINAL" ~/vimwiki/diary/$YEAR-$MONTH-$DAY.md:}%time%%{A}%{A}%{A}
;label-foreground = #1ea69d
label-foreground = #6f88e8
label-background = ${colors.background}
label-overline = ${colors.uo_linecolor}
;label-underline = ${colors.uo_linecolor}
label-padding = 2
; }}}
; Pulseaudio {{{
[module/pulseaudio]
type = internal/pulseaudio
format-volume = %{A3:~/.config/rofi/scripts/volume.sh:}%{A2:kitty pulsemixer:}<ramp-volume> <bar-volume>%{A}%{A}
use-ui-max = false
interval = 5
ramp-volume-font = ${layout.icon-font}
ramp-volume-foreground = #e1acff
ramp-volume-0 = ""
ramp-volume-1 = ""
ramp-volume-2 = ""
bar-volume-font = ${layout.icon-font}
bar-volume-width = 10
bar-volume-fill = ${layout.bar-fill-icon}
bar-volume-indicator =
bar-volume-empty = ${layout.bar-fill-icon}
bar-volume-format = ${layout.bar-format}
bar-volume-foreground-0 = #e1acff
label-muted =%{o#6b6b6b}%{+o} %{-o}
label-muted-overline = ${colors.vol_mute}
label-muted-foreground = ${colors.vol_mute}
label-muted-padding = 0
format-muted-prefix-font = ${layout.icon-font}
format-volume-foreground = #e1acff
format-volume-padding = 1
; }}}
; Battery {{{
[module/battery]
type = internal/battery
full-at = 100
time-format = %H:%M
battery = BAT0
adapter = AC
format-charging = %{A1:~/.config/rofi/scripts/battery.sh:} <animation-charging> <label-charging>%{A} %{F#8897f4}|%{F-}
;format-discharging = %{o#9786d1}%{+o}%{A1:~/.config/rofi/scripts/battery.sh:} <ramp-capacity> <label-discharging> %{A}%{-o} %{F#8897f4}|%{F-}
format-discharging = %{A1:~/.config/rofi/scripts/battery.sh:} <ramp-capacity> <label-discharging>%{A} %{F#8897f4}|%{F-}
format-full = <label-full> %{F#8897f4}|%{F-}
label-discharging-foreground = #9786d1
label-charging-foreground = #9786d1
format-charging-foreground = #9786d1
format-charging-padding = 0
format-discharging-padding = 0
format-full-padding = 0
;format-discharging-overline = ${colors.uo_linecolor}
ramp-capacity-font=${layout.icon-font}
;label-full = ""
label-full =
ramp-capacity-0 = ""
ramp-capacity-1 = ""
ramp-capacity-2 = ""
ramp-capacity-3 = ""
ramp-capacity-4 = ""
ramp-capacity-foreground = #9786d1
ramp-capacity-0-foreground = #f0416d
ramp-capacity-1-foreground = ${colors.urgent}
;ramp-capacity-0-overline = ${colors.critical}
;ramp-capacity-1-overline = ${colors.urgent}
;ramp-capacity-2-overline = ${colors.warning}
animation-charging-foreground = #9786d1
animation-charging-0 = ""
animation-charging-1 = ""
animation-charging-2 = ""
animation-charging-3 = ""
animation-charging-4 = ""
animation-charging-framerate = 500 ;750
; }}}
; Settings + Global WM {{{
[settings]
screenchange-reload = true
[global/wm]
margin-top = 0
margin-bottom = 0
; }}}
; --------------------------------------------------------------------------------------------
; Unused Modules {{{
; SPOTIFY MODULES {{{
;[module/previous]
;type = custom/script
;format-font = 2
;format-padding = 2
;format-foreground = ${colors.foreground}
;exec = echo ""
;exec-if = "pgrep spotify"
;click-left = "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous"
;
;[module/next]
;type = custom/script
;format-font = 2
;format-padding = 2
;format-foreground = ${colors.foreground}
;exec = echo ""
;exec-if = "pgrep spotify"
;click-left = "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next"
;
;[module/playpause]
;type = custom/ipc
;format-font = 2
;format-padding = 0
;format-foreground = ${colors.foreground}
;hook-0 = echo ""
;hook-1 = echo ""
;hook-2 = echo ""
;initial = 2
;click-left = "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"
;
;[module/spotify]
;type = custom/ipc
;format-foreground = ${colors.foreground}
;hook-0 = echo ""
;hook-1 = python3 ~/.config/scripts/spotify_status.py
;initial = 2
;tail = true
;interval = 10
;click-left = bspc desktop -f V
; }}}
; }}}
; --------------------------------------------------------------------------------------------
; vim: set ft=dosini