Skip to content

Commit cb670e8

Browse files
committed
Added aerospace window manager setup
1 parent aa7778f commit cb670e8

File tree

2 files changed

+197
-0
lines changed

2 files changed

+197
-0
lines changed

.config/aerospace/aerospace.toml

Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
# Place a copy of this config to ~/.aerospace.toml
2+
# After that, you can edit ~/.aerospace.toml to your liking
3+
4+
# It's not necessary to copy all keys to your config.
5+
# If the key is missing in your config, "default-config.toml" will serve as a fallback
6+
7+
# You can use it to add commands that run after login to macOS user session.
8+
# 'start-at-login' needs to be 'true' for 'after-login-command' to work
9+
# Available commands: https://nikitabobko.github.io/AeroSpace/commands
10+
after-login-command = []
11+
12+
# You can use it to add commands that run after AeroSpace startup.
13+
# 'after-startup-command' is run after 'after-login-command'
14+
# Available commands : https://nikitabobko.github.io/AeroSpace/commands
15+
after-startup-command = []
16+
17+
# Start AeroSpace at login
18+
start-at-login = true
19+
20+
# Normalizations. See: https://nikitabobko.github.io/AeroSpace/guide#normalization
21+
enable-normalization-flatten-containers = true
22+
enable-normalization-opposite-orientation-for-nested-containers = true
23+
24+
# See: https://nikitabobko.github.io/AeroSpace/guide#layouts
25+
# The 'accordion-padding' specifies the size of accordion padding
26+
# You can set 0 to disable the padding feature
27+
accordion-padding = 30
28+
29+
# Possible values: tiles|accordion
30+
default-root-container-layout = 'tiles'
31+
32+
# Possible values: horizontal|vertical|auto
33+
# 'auto' means: wide monitor (anything wider than high) gets horizontal orientation,
34+
# tall monitor (anything higher than wide) gets vertical orientation
35+
default-root-container-orientation = 'auto'
36+
37+
# Possible values: (qwerty|dvorak)
38+
# See https://nikitabobko.github.io/AeroSpace/guide#key-mapping
39+
key-mapping.preset = 'qwerty'
40+
41+
# Mouse follows focus when focused monitor changes
42+
# Drop it from your config, if you don't like this behavior
43+
# See https://nikitabobko.github.io/AeroSpace/guide#on-focus-changed-callbacks
44+
# See https://nikitabobko.github.io/AeroSpace/commands#move-mouse
45+
on-focused-monitor-changed = ['move-mouse monitor-lazy-center']
46+
on-focus-changed = "move-mouse window-lazy-center"
47+
48+
# Gaps between windows (inner-*) and between monitor edges (outer-*).
49+
# Possible values:
50+
# - Constant: gaps.outer.top = 8
51+
# - Per monitor: gaps.outer.top = [{ monitor.main = 16 }, { monitor."some-pattern" = 32 }, 24]
52+
# In this example, 24 is a default value when there is no match.
53+
# Monitor pattern is the same as for 'workspace-to-monitor-force-assignment'.
54+
# See: https://nikitabobko.github.io/AeroSpace/guide#assign-workspaces-to-monitors
55+
[gaps]
56+
inner.horizontal = 18
57+
inner.vertical = 18
58+
outer.left = 18
59+
outer.bottom = 18
60+
outer.top = 18
61+
outer.right = 18
62+
63+
# 'main' binding mode declaration
64+
# See: https://nikitabobko.github.io/AeroSpace/guide#binding-modes
65+
# 'main' binding mode must be always presented
66+
[mode.main.binding]
67+
68+
# All possible keys:
69+
# - Letters. a, b, c, ..., z
70+
# - Numbers. 0, 1, 2, ..., 9
71+
# - Keypad numbers. keypad0, keypad1, keypad2, ..., keypad9
72+
# - F-keys. f1, f2, ..., f20
73+
# - Special keys. minus, equal, period, comma, slash, backslash, quote, semicolon, backtick,
74+
# leftSquareBracket, rightSquareBracket, space, enter, esc, backspace, tab
75+
# - Keypad special. keypadClear, keypadDecimalMark, keypadDivide, keypadEnter, keypadEqual,
76+
# keypadMinus, keypadMultiply, keypadPlus
77+
# - Arrows. left, down, up, right
78+
79+
# All possible modifiers: cmd, alt, ctrl, shift
80+
81+
# All possible commands: https://nikitabobko.github.io/AeroSpace/commands
82+
83+
# You can uncomment this line to open up terminal with alt + enter shortcut
84+
# See: https://nikitabobko.github.io/AeroSpace/commands#exec-and-forget
85+
# alt-enter = 'exec-and-forget open -n /System/Applications/Utilities/Terminal.app'
86+
87+
# See: https://nikitabobko.github.io/AeroSpace/commands#layout
88+
alt-slash = 'layout tiles horizontal vertical'
89+
alt-comma = 'layout accordion horizontal vertical'
90+
91+
# See: https://nikitabobko.github.io/AeroSpace/commands#focus
92+
alt-h = 'focus left'
93+
alt-j = 'focus down'
94+
alt-k = 'focus up'
95+
alt-l = 'focus right'
96+
97+
# See: https://nikitabobko.github.io/AeroSpace/commands#move
98+
alt-shift-h = 'move left'
99+
alt-shift-j = 'move down'
100+
alt-shift-k = 'move up'
101+
alt-shift-l = 'move right'
102+
103+
104+
# See: https://nikitabobko.github.io/AeroSpace/commands#workspace
105+
alt-1 = 'workspace 1'
106+
alt-2 = 'workspace 2'
107+
alt-3 = 'workspace 3'
108+
alt-4 = 'workspace 4'
109+
alt-5 = 'workspace 5'
110+
alt-6 = 'workspace 6'
111+
alt-7 = 'workspace 7'
112+
alt-8 = 'workspace 8'
113+
alt-9 = 'workspace 9'
114+
alt-b = 'workspace B'
115+
alt-e = 'workspace E'
116+
alt-m = 'workspace M'
117+
alt-n = 'workspace N'
118+
alt-p = 'workspace P'
119+
alt-t = 'workspace T'
120+
alt-v = 'workspace V'
121+
122+
# See: https://nikitabobko.github.io/AeroSpace/commands#move-node-to-workspace
123+
alt-shift-1 = 'move-node-to-workspace 1'
124+
alt-shift-2 = 'move-node-to-workspace 2'
125+
alt-shift-3 = 'move-node-to-workspace 3'
126+
alt-shift-4 = 'move-node-to-workspace 4'
127+
alt-shift-5 = 'move-node-to-workspace 5'
128+
alt-shift-6 = 'move-node-to-workspace 6'
129+
alt-shift-7 = 'move-node-to-workspace 7'
130+
alt-shift-8 = 'move-node-to-workspace 8'
131+
alt-shift-9 = 'move-node-to-workspace 9'
132+
alt-shift-b = 'move-node-to-workspace B'
133+
alt-shift-e = 'move-node-to-workspace E'
134+
alt-shift-m = 'move-node-to-workspace M'
135+
alt-shift-n = 'move-node-to-workspace N'
136+
alt-shift-p = 'move-node-to-workspace P'
137+
alt-shift-t = 'move-node-to-workspace T'
138+
alt-shift-v = 'move-node-to-workspace V'
139+
140+
alt-shift-f = 'fullscreen'
141+
142+
# See: https://nikitabobko.github.io/AeroSpace/commands#workspace-back-and-forth
143+
alt-tab = 'workspace-back-and-forth'
144+
# See: https://nikitabobko.github.io/AeroSpace/commands#move-workspace-to-monitor
145+
alt-shift-tab = 'move-workspace-to-monitor --wrap-around next'
146+
147+
# See: https://nikitabobko.github.io/AeroSpace/commands#mode
148+
alt-shift-semicolon = 'mode service'
149+
150+
alt-shift-r = 'mode resize'
151+
152+
[mode.resize.binding]
153+
h = 'resize width -50'
154+
j = 'resize height +50'
155+
k = 'resize height -50'
156+
l = 'resize width +50'
157+
b = 'balance-sizes'
158+
159+
160+
# See: https://nikitabobko.github.io/AeroSpace/commands#resize
161+
minus = 'resize smart -50'
162+
equal = 'resize smart +50'
163+
164+
enter = 'mode main'
165+
esc = 'mode main'
166+
167+
# 'service' binding mode declaration.
168+
# See: https://nikitabobko.github.io/AeroSpace/guide#binding-modes
169+
[mode.service.binding]
170+
esc = ['reload-config', 'mode main']
171+
r = ['flatten-workspace-tree', 'mode main'] # reset layout
172+
#s = ['layout sticky tiling', 'mode main'] # sticky is not yet supported https://github.com/nikitabobko/AeroSpace/issues/2
173+
f = ['layout floating tiling', 'mode main'] # Toggle between floating and tiling layout
174+
backspace = ['close-all-windows-but-current', 'mode main']
175+
176+
alt-shift-h = ['join-with left', 'mode main']
177+
alt-shift-j = ['join-with down', 'mode main']
178+
alt-shift-k = ['join-with up', 'mode main']
179+
alt-shift-l = ['join-with right', 'mode main']
180+
181+
[[on-window-detected]]
182+
if.app-id = 'com.github.wez.wezterm'
183+
run = "move-node-to-workspace T"
184+
185+
[[on-window-detected]]
186+
if.app-id = 'com.google.Chrome'
187+
run = "move-node-to-workspace B"

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@ You'll also need to install extra cli tools as described in this blog post and v
5454
- [.config/yabai/yabairc](.config/yabai/yabairc)
5555
- [.config/skhd/skhdrc](.config/skhd/skhdrc)
5656

57+
# Aerospace Tiling Window Manager Setup
58+
59+
✍🏼 Blog Post: [How To Setup And Use The Aerospace Tiling Window Manager On macOS](https://josean.com/posts/how-to-setup-aerospace-tiling-window-manager)
60+
61+
📹 Youtube Guide: [How To Setup And Use The Aerospace Tiling Window Manager On macOS](https://youtu.be/-FoWClVHG5g)
62+
63+
### Relevant Files
64+
65+
- [.config/aerospace/aerospace.toml](.config/aerospace/aerospace.toml)
66+
5767
# Sketchybar Custom Menu Bar Setup
5868

5969
✍🏼 Blog Post: [How To Make An Amazing Custom Menu Bar For Your Mac With Sketchybar](https://josean.com/posts/sketchybar-setup)

0 commit comments

Comments
 (0)