-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathconfig.yaml
259 lines (229 loc) · 8.47 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
general:
# Commands to run when the WM has started (e.g. to run a script or launch
# another application). Here we are running a batch script to start Zebar.
startup_commands: ["shell-exec zebar"]
# 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"
trigger: "window_focus"
gaps:
# Gap between adjacent windows.
inner_gap: "10px"
# Gap between windows and the screen edge.
outer_gap:
top: "50px"
right: "10px"
bottom: "10px"
left: "10px"
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: "#bea3c7"
# Visual effects to apply to non-focused windows.
other_windows:
border:
enabled: true
color: "#a1a1a1"
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"
- name: "2"
- name: "3"
- name: "4"
- name: "5"
- name: "6"
- name: "7"
- name: "8"
- name: "9"
window_rules:
- commands: ["ignore"]
match:
# Ignores any Zebar windows.
- window_process: {equals: "zebar"}
- window_title: {regex: "[Pp]icture.in.[Pp]icture"}
# Ignores picture-in-picture windows for browsers.
window_class: {regex: "Chrome_WidgetWin_1|MozillaDialogClass"}
- window_process: {equals: "PowerToys.PowerAccent"}
# Ignore rules for various 3rd-party apps.
- window_process: {equals: "Lively"}
window_class: {regex: "HwndWrapper*"}
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"]
- commands: ["wm-disable-binding-mode --name resize"]
# Press enter/escape to return to default keybindings.
bindings: ["escape", "enter"]
- name: "pause"
# When enabled, all keybindings are disabled except for alt+shift+p which
# returns to default keybindings.
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"]
- commands: ["move --direction left"]
# Move focused window in a given direction.
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"]
- commands: ["resize --width -2%"]
# Resize focused window by a percentage or pixel amount.
bindings: ["alt+u"]
- commands: ["resize --width +2%"]
bindings: ["alt+p"]
- commands: ["resize --height +2%"]
bindings: ["alt+o"]
- commands: ["resize --height -2%"]
bindings: ["alt+i"]
- commands: ["wm-enable-binding-mode --name resize"]
# As an alternative to the resize keybindings above, resize mode enables
# the name 'resize'.
# resizing via arrow keys or HJKL. The binding mode is defined above with
bindings: ["alt+r"]
- commands: ["wm-enable-binding-mode --name pause"]
# Disables all keybindings until alt+shift+p is pressed again.
bindings: ["alt+shift+p"]
- commands: ["toggle-tiling-direction"]
# Change tiling direction. This determines where new tiling windows will
# be inserted.
bindings: ["alt+v"]
# bindings: ["alt+c"]
- commands: ["toggle-floating --centered"]
# Change focus from tiling windows -> floating -> fullscreen.
# Change the focused window to be floating.
# - commands: ["wm-cycle-focus"]
bindings: ["alt+shift+space"]
- commands: ["toggle-tiling"]
# Change the focused window to be tiling.
bindings: ["alt+t"]
- commands: ["toggle-fullscreen"]
# Change the focused window to be fullscreen.
bindings: ["alt+f"]
- commands: ["toggle-minimized"]
# Minimize focused window.
bindings: ["alt+m"]
- commands: ["close"]
# Close focused window.
bindings: ["alt+shift+q"]
- commands: ["wm-exit"]
# Kill GlazeWM process safely.
bindings: ["alt+shift+e"]
- commands: ["wm-reload-config"]
# Re-evaluate configuration file.
bindings: ["alt+shift+r"]
- commands: ["wm-redraw"]
# Redraw all windows.
bindings: ["alt+shift+w"]
- commands: ["shell-exec wezterm-gui"]
# Launch CMD terminal. Alternatively, use `shell-exec wt` or
# Terminal and Git Bash respectively.
# `shell-exec %ProgramFiles%/Git/git-bash.exe` to start Windows
bindings: ["alt+enter"]
- commands: ["focus --next-workspace"]
# Focus the next/previous workspace defined in `workspaces` config.
bindings: ["alt+s"]
- commands: ["focus --prev-workspace"]
bindings: ["alt+a"]
- commands: ["focus --recent-workspace"]
# Focus the workspace that last had focus.
bindings: ["alt+d"]
- commands: ["focus --workspace 1"]
# Change focus to a workspace defined in `workspaces` config.
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"]
- commands: ["focus --workspace 7"]
bindings: ["alt+7"]
- commands: ["focus --workspace 8"]
bindings: ["alt+8"]
- commands: ["focus --workspace 9"]
bindings: ["alt+9"]
- commands: ["move-workspace --direction left"]
# Move the focused window's parent workspace to a monitor in a given
# direction.
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"]
- commands: ["move --workspace 1", "focus --workspace 1"]
# Move focused window to a workspace defined in `workspaces` config.
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"]
- commands: ["move --workspace 7", "focus --workspace 7"]
bindings: ["alt+shift+7"]
- commands: ["move --workspace 8", "focus --workspace 8"]
bindings: ["alt+shift+8"]
- commands: ["move --workspace 9", "focus --workspace 9"]
bindings: ["alt+shift+9"]