|
| 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 | + |
| 47 | +# Gaps between windows (inner-*) and between monitor edges (outer-*). |
| 48 | +# Possible values: |
| 49 | +# - Constant: gaps.outer.top = 8 |
| 50 | +# - Per monitor: gaps.outer.top = [{ monitor.main = 16 }, { monitor."some-pattern" = 32 }, 24] |
| 51 | +# In this example, 24 is a default value when there is no match. |
| 52 | +# Monitor pattern is the same as for 'workspace-to-monitor-force-assignment'. |
| 53 | +# See: https://nikitabobko.github.io/AeroSpace/guide#assign-workspaces-to-monitors |
| 54 | +[gaps] |
| 55 | +inner.horizontal = 0 |
| 56 | +inner.vertical = 0 |
| 57 | +outer.left = 0 |
| 58 | +outer.bottom = 0 |
| 59 | +outer.top = 0 |
| 60 | +outer.right = 0 |
| 61 | + |
| 62 | +# 'main' binding mode declaration |
| 63 | +# See: https://nikitabobko.github.io/AeroSpace/guide#binding-modes |
| 64 | +# 'main' binding mode must be always presented |
| 65 | +[mode.main.binding] |
| 66 | + |
| 67 | +# All possible keys: |
| 68 | +# - Letters. a, b, c, ..., z |
| 69 | +# - Numbers. 0, 1, 2, ..., 9 |
| 70 | +# - Keypad numbers. keypad0, keypad1, keypad2, ..., keypad9 |
| 71 | +# - F-keys. f1, f2, ..., f20 |
| 72 | +# - Special keys. minus, equal, period, comma, slash, backslash, quote, semicolon, backtick, |
| 73 | +# leftSquareBracket, rightSquareBracket, space, enter, esc, backspace, tab |
| 74 | +# - Keypad special. keypadClear, keypadDecimalMark, keypadDivide, keypadEnter, keypadEqual, |
| 75 | +# keypadMinus, keypadMultiply, keypadPlus |
| 76 | +# - Arrows. left, down, up, right |
| 77 | + |
| 78 | +# All possible modifiers: cmd, alt, ctrl, shift |
| 79 | + |
| 80 | +# All possible commands: https://nikitabobko.github.io/AeroSpace/commands |
| 81 | + |
| 82 | +# You can uncomment this line to open up terminal with alt + enter shortcut |
| 83 | +# See: https://nikitabobko.github.io/AeroSpace/commands#exec-and-forget |
| 84 | +# alt-enter = 'exec-and-forget open -n /System/Applications/Utilities/Terminal.app' |
| 85 | + |
| 86 | +# See: https://nikitabobko.github.io/AeroSpace/commands#layout |
| 87 | +alt-slash = 'layout tiles horizontal vertical' |
| 88 | +alt-comma = 'layout accordion horizontal vertical' |
| 89 | + |
| 90 | +# See: https://nikitabobko.github.io/AeroSpace/commands#focus |
| 91 | +alt-left = 'focus left' |
| 92 | +alt-down = 'focus down' |
| 93 | +alt-up = 'focus up' |
| 94 | +alt-right = 'focus right' |
| 95 | + |
| 96 | +# See: https://nikitabobko.github.io/AeroSpace/commands#move |
| 97 | +alt-shift-left = 'move left' |
| 98 | +alt-shift-down = 'move down' |
| 99 | +alt-shift-up = 'move up' |
| 100 | +alt-shift-right = 'move right' |
| 101 | + |
| 102 | +# See: https://nikitabobko.github.io/AeroSpace/commands#resize |
| 103 | +alt-shift-minus = 'resize smart -50' |
| 104 | +alt-shift-equal = 'resize smart +50' |
| 105 | + |
| 106 | +# See: https://nikitabobko.github.io/AeroSpace/commands#workspace |
| 107 | +alt-1 = 'workspace 1' |
| 108 | +alt-2 = 'workspace 2' |
| 109 | +alt-3 = 'workspace 3' |
| 110 | +alt-4 = 'workspace 4' |
| 111 | +alt-5 = 'workspace 5' |
| 112 | +alt-6 = 'workspace 6' |
| 113 | +alt-7 = 'workspace 7' |
| 114 | +alt-8 = 'workspace 8' |
| 115 | +alt-9 = 'workspace 9' |
| 116 | +alt-a = 'workspace A' # In your config, you can drop workspace bindings that you don't need |
| 117 | +alt-b = 'workspace B' |
| 118 | +alt-c = 'workspace C' |
| 119 | +alt-d = 'workspace D' |
| 120 | +alt-e = 'workspace E' |
| 121 | +alt-f = 'workspace F' |
| 122 | +alt-g = 'workspace G' |
| 123 | +alt-i = 'workspace I' |
| 124 | +alt-m = 'workspace M' |
| 125 | +alt-n = 'workspace N' |
| 126 | +alt-o = 'workspace O' |
| 127 | +alt-p = 'workspace P' |
| 128 | +alt-q = 'workspace Q' |
| 129 | +alt-r = 'workspace R' |
| 130 | +alt-s = 'workspace S' |
| 131 | +alt-t = 'workspace T' |
| 132 | +alt-u = 'workspace U' |
| 133 | +alt-v = 'workspace V' |
| 134 | +alt-w = 'workspace W' |
| 135 | +alt-x = 'workspace X' |
| 136 | +alt-y = 'workspace Y' |
| 137 | +alt-z = 'workspace Z' |
| 138 | + |
| 139 | +# See: https://nikitabobko.github.io/AeroSpace/commands#move-node-to-workspace |
| 140 | +alt-shift-1 = 'move-node-to-workspace 1' |
| 141 | +alt-shift-2 = 'move-node-to-workspace 2' |
| 142 | +alt-shift-3 = 'move-node-to-workspace 3' |
| 143 | +alt-shift-4 = 'move-node-to-workspace 4' |
| 144 | +alt-shift-5 = 'move-node-to-workspace 5' |
| 145 | +alt-shift-6 = 'move-node-to-workspace 6' |
| 146 | +alt-shift-7 = 'move-node-to-workspace 7' |
| 147 | +alt-shift-8 = 'move-node-to-workspace 8' |
| 148 | +alt-shift-9 = 'move-node-to-workspace 9' |
| 149 | +alt-shift-a = 'move-node-to-workspace A' |
| 150 | +alt-shift-b = 'move-node-to-workspace B' |
| 151 | +alt-shift-c = 'move-node-to-workspace C' |
| 152 | +alt-shift-d = 'move-node-to-workspace D' |
| 153 | +alt-shift-e = 'move-node-to-workspace E' |
| 154 | +alt-shift-f = 'move-node-to-workspace F' |
| 155 | +alt-shift-g = 'move-node-to-workspace G' |
| 156 | +alt-shift-i = 'move-node-to-workspace I' |
| 157 | +alt-shift-m = 'move-node-to-workspace M' |
| 158 | +alt-shift-n = 'move-node-to-workspace N' |
| 159 | +alt-shift-o = 'move-node-to-workspace O' |
| 160 | +alt-shift-p = 'move-node-to-workspace P' |
| 161 | +alt-shift-q = 'move-node-to-workspace Q' |
| 162 | +alt-shift-r = 'move-node-to-workspace R' |
| 163 | +alt-shift-s = 'move-node-to-workspace S' |
| 164 | +alt-shift-t = 'move-node-to-workspace T' |
| 165 | +alt-shift-u = 'move-node-to-workspace U' |
| 166 | +alt-shift-v = 'move-node-to-workspace V' |
| 167 | +alt-shift-w = 'move-node-to-workspace W' |
| 168 | +alt-shift-x = 'move-node-to-workspace X' |
| 169 | +alt-shift-y = 'move-node-to-workspace Y' |
| 170 | +alt-shift-z = 'move-node-to-workspace Z' |
| 171 | + |
| 172 | +# See: https://nikitabobko.github.io/AeroSpace/commands#workspace-back-and-forth |
| 173 | +alt-tab = 'workspace-back-and-forth' |
| 174 | +# See: https://nikitabobko.github.io/AeroSpace/commands#move-workspace-to-monitor |
| 175 | +alt-shift-tab = 'move-workspace-to-monitor --wrap-around next' |
| 176 | + |
| 177 | +# See: https://nikitabobko.github.io/AeroSpace/commands#mode |
| 178 | +alt-shift-semicolon = 'mode service' |
| 179 | + |
| 180 | +# 'service' binding mode declaration. |
| 181 | +# See: https://nikitabobko.github.io/AeroSpace/guide#binding-modes |
| 182 | +[mode.service.binding] |
| 183 | +esc = ['reload-config', 'mode main'] |
| 184 | +r = ['flatten-workspace-tree', 'mode main'] # reset layout |
| 185 | +#s = ['layout sticky tiling', 'mode main'] # sticky is not yet supported https://github.com/nikitabobko/AeroSpace/issues/2 |
| 186 | +f = ['layout floating tiling', 'mode main'] # Toggle between floating and tiling layout |
| 187 | +backspace = ['close-all-windows-but-current', 'mode main'] |
| 188 | + |
| 189 | +alt-shift-h = ['join-with left', 'mode main'] |
| 190 | +alt-shift-j = ['join-with down', 'mode main'] |
| 191 | +alt-shift-k = ['join-with up', 'mode main'] |
| 192 | +alt-shift-l = ['join-with right', 'mode main'] |
0 commit comments