-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.yaml
357 lines (303 loc) · 10.9 KB
/
config.yaml
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
rosewater: &rosewater "#f4dbd6"
flamingo: &flamingo "#f0c6c6"
pink: &pink "#f5bde6"
mauve: &mauve "#c6a0f6"
red: &red "#ed8796"
maroon: &maroon "#ee99a0"
peach: &peach "#f5a97f"
yellow: &yellow "#eed49f"
green: &green "#a6da95"
teal: &teal "#8bd5ca"
sky: &sky "#91d7e3"
sapphire: &sapphire "#7dc4e4"
blue: &blue "#8aadf4"
lavender: &lavender "#b7bdf8"
text: &text "#cad3f5"
subtext1: &subtext1 "#b8c0e0"
subtext0: &subtext0 "#a5adcb"
overlay2: &overlay2 "#939ab7"
overlay1: &overlay1 "#8087a2"
overlay0: &overlay0 "#6e738d"
surface2: &surface2 "#5b6078"
surface1: &surface1 "#494d64"
surface0: &surface0 "#363a4f"
base: &base "#24273a"
mantle: &mantle "#1e2030"
crust: &crust "#181926"
general:
# Commands to run when the WM has started. This is useful for running a
# script or launching another application.
# Example: The below command launches Zebar.
# startup_commands: ['shell-exec zebar']
# Commands to run just before the WM is shutdown.
# Example: The below command kills Zebar.
# shutdown_commands: ['shell-exec taskkill /IM zebar.exe /F']
# Commands to run after the WM config is reloaded.
config_reload_commands: []
# Whether to automatically focus windows underneath the cursor.
focus_follows_cursor: false
# Whether to switch back and forth between the previously focused
# workspace when focusing the current workspace.
toggle_workspace_on_refocus: false
cursor_jump:
# Whether to automatically move the cursor on the specified trigger.
enabled: true
# Trigger for cursor jump:
# - 'monitor_focus': Jump when focus changes between monitors.
# - 'window_focus': Jump when focus changes between windows.
trigger: 'monitor_focus'
gaps:
# Whether to scale the gaps with the DPI of the monitor.
scale_with_dpi: true
# Gap between adjacent windows.
inner_gap: '10px'
# Gap between windows and the screen edge.
outer_gap:
top: '60px'
right: '20px'
bottom: '20px'
left: '20px'
window_effects:
# Visual effects to apply to the focused window.
focused_window:
# Highlight the window with a colored border.
# ** Exclusive to Windows 11 due to API limitations.
border:
enabled: true
color: *sapphire
# Remove the title bar from the window's frame. Note that this can
# cause rendering issues for some applications.
hide_title_bar:
enabled: false
# Change the corner style of the window's frame.
# ** Exclusive to Windows 11 due to API limitations.
corner_style:
enabled: false
# Allowed values: 'square', 'rounded', 'small_rounded'.
style: 'rounded'
# Visual effects to apply to non-focused windows.
other_windows:
border:
enabled: true
color: *overlay1
hide_title_bar:
enabled: false
corner_style:
enabled: false
style: 'rounded'
window_behavior:
# New windows are created in this state whenever possible.
# Allowed values: 'tiling', 'floating'.
initial_state: 'tiling'
# Sets the default options for when a new window is created. This also
# changes the defaults for when the state change commands, like
# `set-floating`, are used without any flags.
state_defaults:
floating:
# Whether to center floating windows by default.
centered: true
# Whether to show floating windows as always on top.
shown_on_top: false
fullscreen:
# Maximize the window if possible. If the window doesn't have a
# maximize button, then it'll be fullscreen'ed normally instead.
maximized: false
# Whether to show fullscreen windows as always on top.
shown_on_top: false
workspaces:
- name: '1'
display_name: ' Main'
keep_alive: true
bind_to_monitor: 0
- name: '2'
display_name: ' Code'
keep_alive: false
bind_to_monitor: 0
- name: '3'
display_name: ' Download'
keep_alive: false
bind_to_monitor: 1
- name: '4'
display_name: ' Browsers'
keep_alive: false
bind_to_monitor: 1
- name: '5'
display_name: ' Media'
keep_alive: false
bind_to_monitor: 2
window_rules:
- commands: ['ignore']
match:
# Ignores any Zebar windows.
- window_process: { equals: 'zebar' }
# Ignores picture-in-picture windows for browsers.
- window_title: { regex: '[Pp]icture.in.[Pp]icture' }
window_class: { regex: 'Chrome_WidgetWin_1|MozillaDialogClass' }
# Ignore rules for various 3rd-party apps.
- window_process: { equals: 'PowerToys' }
window_class: { regex: 'HwndWrapper\[PowerToys\.PowerAccent.*?\]' }
- window_process: { equals: 'PowerToys' }
window_title: { regex: '.*? - Peek' }
- window_process: { equals: 'Lively' }
window_class: { regex: 'HwndWrapper' }
# Ignore rules for Rainmeters
- window_process: { equals: 'Rainmeter' }
- window_process: { equals: '/Taskmgr|ScreenClippingHost/' }
- commands: ['set-floating']
match:
- window_process: { equals: 'Flow.Launcher' }
- window_process: { equals: 'explorer' }
- window_process: { equals: 'SnippingTool' }
- window_process: { equals: 'Clipchamp' }
- window_process: { equals: 'Taskmgr' }
- commands: ['move --workspace 1']
match:
- window_process: { equals: 'Code' }
- window_process: { equals: 'Obsidian' }
- window_process: { equals: 'Notepad++' }
- commands: ['move --workspace 2']
match:
- window_process: { equals: 'msedge' }
- window_process: { equals: 'zen' }
- commands: ['move --workspace 3']
match:
- window_process: { equals: 'spotify' }
binding_modes:
# When enabled, the focused window can be resized via arrow keys or HJKL.
- name: 'resize'
keybindings:
- commands: ['resize --width -2%']
bindings: ['h', 'left']
- commands: ['resize --width +2%']
bindings: ['l', 'right']
- commands: ['resize --height +2%']
bindings: ['k', 'up']
- commands: ['resize --height -2%']
bindings: ['j', 'down']
# Press enter/escape to return to default keybindings.
- commands: ['wm-disable-binding-mode --name resize']
bindings: ['escape', 'enter']
# When enabled, all keybindings are disabled except for alt+shift+p which
# returns to default keybindings.
- name: 'pause'
keybindings:
- commands: ['wm-disable-binding-mode --name pause']
bindings: ['alt+shift+p']
keybindings:
# Shift focus in a given direction.
- commands: ['focus --direction left']
bindings: ['alt+h', 'alt+left']
- commands: ['focus --direction right']
bindings: ['alt+l', 'alt+right']
- commands: ['focus --direction up']
bindings: ['alt+k', 'alt+up']
- commands: ['focus --direction down']
bindings: ['alt+j', 'alt+down']
# Move focused window in a given direction.
- commands: ['move --direction left']
bindings: ['alt+shift+h', 'alt+shift+left']
- commands: ['move --direction right']
bindings: ['alt+shift+l', 'alt+shift+right']
- commands: ['move --direction up']
bindings: ['alt+shift+k', 'alt+shift+up']
- commands: ['move --direction down']
bindings: ['alt+shift+j', 'alt+shift+down']
# Resize focused window by a percentage or pixel amount.
- commands: ['resize --width -2%']
bindings: ['alt+u']
- commands: ['resize --width +2%']
bindings: ['alt+p']
- commands: ['resize --height +2%']
bindings: ['alt+o']
- commands: ['resize --height -2%']
bindings: ['alt+i']
# As an alternative to the resize keybindings above, resize mode enables
# resizing via arrow keys or HJKL. The binding mode is defined above with
# the name 'resize'.
- commands: ['wm-enable-binding-mode --name resize']
bindings: ['alt+r']
# Disables all keybindings until alt+shift+p is pressed again.
- commands: ['wm-enable-binding-mode --name pause']
bindings: ['alt+shift+p']
# Change tiling direction. This determines where new tiling windows will
# be inserted.
- commands: ['toggle-tiling-direction']
bindings: ['alt+v']
# Change focus from tiling windows -> floating -> fullscreen.
- commands: ['wm-cycle-focus']
bindings: ['alt+space+f']
# Change the focused window to be floating.
- commands: ['toggle-floating --centered']
bindings: ['alt+shift+space']
# Change the focused window to be tiling.
- commands: ['toggle-tiling']
bindings: ['alt+t']
# Change the focused window to be fullscreen.
- commands: ['toggle-fullscreen']
bindings: ['alt+f']
# Minimize focused window.
- commands: ['toggle-minimized']
bindings: ['alt+m']
# Close focused window.
- commands: ['close']
bindings: ['alt+shift+q']
# Kill GlazeWM process safely.
- commands: ['wm-exit']
bindings: ['alt+shift+e']
# Re-evaluate configuration file.
- commands: ['wm-reload-config']
bindings: ['alt+shift+r']
# Redraw all windows.
- commands: ['wm-redraw']
bindings: ['alt+shift+w']
# Launch CMD terminal. Alternatively, use `shell-exec wt` or
# `shell-exec %ProgramFiles%/Git/git-bash.exe` to start Windows
# Terminal and Git Bash respectively.
- commands: ['shell-exec wt']
bindings: ['alt+enter']
- commands: ['shell-exec %LOCALAPPDATA%/FlowLauncher/Flow.Launcher.exe']
bindings: ['alt+space']
# Focus the next/previous workspace defined in `workspaces` config.
- commands: ['focus --next-workspace']
bindings: ['alt+s']
- commands: ['focus --prev-workspace']
bindings: ['alt+a']
# Focus the workspace that last had focus.
- commands: ['focus --recent-workspace']
bindings: ['alt+d']
# Change focus to a workspace defined in `workspaces` config.
- commands: ['focus --workspace 1']
bindings: ['alt+1']
- commands: ['focus --workspace 2']
bindings: ['alt+2']
- commands: ['focus --workspace 3']
bindings: ['alt+3']
- commands: ['focus --workspace 4']
bindings: ['alt+4']
- commands: ['focus --workspace 5']
bindings: ['alt+5']
- commands: ['focus --workspace 6']
bindings: ['alt+6']
# Move the focused window's parent workspace to a monitor in a given
# direction.
- commands: ['move-workspace --direction left']
bindings: ['alt+shift+a']
- commands: ['move-workspace --direction right']
bindings: ['alt+shift+f']
- commands: ['move-workspace --direction up']
bindings: ['alt+shift+d']
- commands: ['move-workspace --direction down']
bindings: ['alt+shift+s']
# Move focused window to a workspace defined in `workspaces` config.
- commands: ['move --workspace 1', 'focus --workspace 1']
bindings: ['alt+shift+1']
- commands: ['move --workspace 2', 'focus --workspace 2']
bindings: ['alt+shift+2']
- commands: ['move --workspace 3', 'focus --workspace 3']
bindings: ['alt+shift+3']
- commands: ['move --workspace 4', 'focus --workspace 4']
bindings: ['alt+shift+4']
- commands: ['move --workspace 5', 'focus --workspace 5']
bindings: ['alt+shift+5']
- commands: ['move --workspace 6', 'focus --workspace 6']
bindings: ['alt+shift+6']