Skip to content

Commit 13bdb4d

Browse files
committed
aerospace: update keymaps
1 parent b2f6a7d commit 13bdb4d

1 file changed

Lines changed: 45 additions & 47 deletions

File tree

aerospace/aerospace.toml

Lines changed: 45 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ after-login-command = []
1414
# Available commands : https://nikitabobko.github.io/AeroSpace/commands
1515
after-startup-command = [
1616
# https://github.com/FelixKratz/JankyBorders?tab=readme-ov-file#bootstrap-with-aerospace
17-
'exec-and-forget borders active_color=0xffcbd9d8 inactive_color=0x00000000 width=4.0'
17+
'exec-and-forget borders active_color=0xff8eb2af inactive_color=0x00000000 width=4.0'
1818
]
1919

2020
# Start AeroSpace at login
@@ -91,26 +91,21 @@ alt-t = 'layout tiles horizontal vertical'
9191
alt-a = 'layout accordion horizontal vertical'
9292

9393
# See: https://nikitabobko.github.io/AeroSpace/commands#focus
94-
alt-shift-left = 'focus left'
95-
alt-shift-right = 'focus right'
96-
alt-shift-up = 'focus up'
97-
alt-shift-down = 'focus down'
98-
99-
alt-h = 'focus left'
100-
alt-j = 'focus down'
101-
alt-k = 'focus up'
102-
alt-l = 'focus right'
94+
alt-ctrl-left = 'focus left'
95+
alt-ctrl-down = 'focus down'
96+
alt-ctrl-up = 'focus up'
97+
alt-ctrl-right = 'focus right'
10398

10499
alt-f = 'fullscreen'
105100
# Toggle windows in and out of the tiling layout/floating
106101
# See: https://nikitabobko.github.io/AeroSpace/commands#default-root-container-layout
107102
alt-shift-f = 'layout floating tiling'
108103

109104
# See: https://nikitabobko.github.io/AeroSpace/commands#move
110-
alt-shift-h = 'move left'
111-
alt-shift-j = 'move down'
112-
alt-shift-k = 'move up'
113-
alt-shift-l = 'move right'
105+
alt-ctrl-shift-left = 'move left'
106+
alt-ctrl-shift-down = 'move down'
107+
alt-ctrl-shift-up = 'move up'
108+
alt-ctrl-shift-right = 'move right'
114109

115110
# See: https://nikitabobko.github.io/AeroSpace/commands#resize
116111
alt-minus = 'resize smart -100'
@@ -167,73 +162,76 @@ alt-shift-l = ['join-with right', 'mode main']
167162

168163
#
169164
# Auto window detection
170-
#
171-
[[on-window-detected]]
172-
if.app-id = 'com.github.wez.wezterm'
173-
run = "move-node-to-workspace 1"
174165

166+
# === 1 =======================================================================
175167
[[on-window-detected]]
176168
if.app-id = 'com.mitchellh.ghostty'
177169
run = "move-node-to-workspace 1"
178170

179-
# Firefox
171+
# === 2 =======================================================================
180172
[[on-window-detected]]
181173
if.app-id = 'org.mozilla.firefoxdeveloperedition'
182-
if.window-title-regex-substring = 'Picture-in-Picture'
183-
run = ['layout floating', 'move-node-to-workspace 3']
184-
check-further-callbacks = true
174+
run = 'move-node-to-workspace 2'
185175

186-
# Chrome Browser
187176
[[on-window-detected]]
188177
if.app-id = 'com.google.Chrome'
189-
if.window-title-regex-substring = 'Picture in Picture'
190-
run = ['layout floating', 'move-node-to-workspace 3']
191-
check-further-callbacks = true
178+
run = 'move-node-to-workspace 2'
192179

193180
[[on-window-detected]]
194-
if.app-id = 'com.DanPristupov.Fork'
195-
run = ["move-node-to-workspace 4"]
181+
if.window-title-regex-substring = 'Picture.*Picture'
182+
run = ['layout floating', 'move-node-to-workspace 2']
183+
check-further-callbacks = true
196184

185+
# === 3 =======================================================================
197186
[[on-window-detected]]
198-
if.app-id = 'com.spotify.client'
199-
run = "move-node-to-workspace 5"
187+
if.app-id = 'com.apple.finder'
188+
run = ['layout floating', 'move-node-to-workspace 3']
200189

201190
[[on-window-detected]]
202-
if.app-id = 'com.apple.finder'
203-
run = ["layout floating", "move-node-to-workspace 6"]
191+
if.app-id = 'com.nordsec.nordpass'
192+
run = ['layout floating', 'move-node-to-workspace 3']
204193

205194
[[on-window-detected]]
206-
if.app-id = 'md.obsidian'
207-
run = 'move-node-to-workspace 4'
195+
if.app-id = 'com.1password.1password'
196+
run = ['layout floating', 'move-node-to-workspace 3']
208197

198+
# === 4 =======================================================================
209199
[[on-window-detected]]
210-
if.app-id = 'com.zscaler.zscaler'
211-
run = 'move-node-to-workspace 5'
200+
if.app-id = 'com.DanPristupov.Fork'
201+
run = 'move-node-to-workspace 4'
212202

213203
[[on-window-detected]]
214204
if.app-id = 'com.jetbrains.intellij.ce'
215-
run = 'move-node-to-workspace 5'
205+
run = 'move-node-to-workspace 4'
216206

217207
[[on-window-detected]]
218-
if.app-id = 'com.1password.1password'
219-
run = ['layout floating', 'move-node-to-workspace 5']
208+
if.app-id = 'com.google.android.studio'
209+
run = 'move-node-to-workspace 4'
220210

221211
[[on-window-detected]]
222-
if.app-id = 'com.nordsec.nordpass'
223-
run = ['layout floating', 'move-node-to-workspace 5']
212+
if.app-id = 'com.zscaler.zscaler'
213+
run = ['layout floating', 'move-node-to-workspace 4']
224214

225215
[[on-window-detected]]
226216
if.app-id = 'com.microsoft.teams2'
227-
run = ['layout tiling', 'move-node-to-workspace 3']
217+
run = ['layout tiling', 'move-node-to-workspace 4']
218+
219+
# === 5 =======================================================================
220+
[[on-window-detected]]
221+
if.app-id = 'com.spotify.client'
222+
run = "move-node-to-workspace 5"
223+
224+
[[on-window-detected]]
225+
if.app-id = 'md.obsidian'
226+
run = 'move-node-to-workspace 5'
228227

229228
[[on-window-detected]]
230229
if.app-id = 'com.docker.docker'
231-
run = ['layout floating', 'move-node-to-workspace 4']
230+
run = ['layout floating', 'move-node-to-workspace 5']
232231

233232
# https://nikitabobko.github.io/AeroSpace/guide#assign-workspaces-to-monitors
234233
[workspace-to-monitor-force-assignment]
235234
1 = ['C34H89x', 'main']
236-
2 = ['dell.*\(2\)', 'C34H89x', 'main' ]
237-
3 = ['dell.*\(1\)', 'main' ]
238-
4 = ['dell.*\(1\)', 'C34H89x', 'main' ]
239-
235+
2 = ['dell.*\(1\)', 'C34H89x', 'main' ]
236+
3 = ['dell.*\(2\)', 'C34H89x', 'main' ]
237+
4 = ['dell.*\(2\)', 'main' ]

0 commit comments

Comments
 (0)