-
Notifications
You must be signed in to change notification settings - Fork 1
/
.aerospace.toml
83 lines (66 loc) · 3.31 KB
/
.aerospace.toml
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
start-at-login = true
after-login-command = []
after-startup-command = []
enable-normalization-flatten-containers = true
enable-normalization-opposite-orientation-for-nested-containers = true
default-root-container-layout = 'accordion'
default-root-container-orientation = 'auto'
accordion-padding = 0
key-mapping.preset = 'qwerty'
on-focused-monitor-changed = ['move-mouse monitor-lazy-center']
[workspace-to-monitor-force-assignment]
1 = 'main'
2 = ['secondary', 'main']
[gaps]
inner.horizontal = [{ monitor."^built-in retina display$" = 16 }, 24]
inner.vertical = [{ monitor."^built-in retina display$" = 16 }, 24]
outer.top = [{ monitor."^built-in retina display$" = 16 }, 24]
outer.right = [{ monitor."^built-in retina display$" = 16 }, 24]
outer.bottom = [{ monitor."^built-in retina display$" = 16 }, 24]
outer.left = [{ monitor."^built-in retina display$" = 16 }, 24]
[mode.main.binding]
# disable useless shortcuts
cmd-h = [] # "hide application"
cmd-alt-h = [] # "hide others"
# reload config
alt-r = ['mode service', 'reload-config', 'mode main']
# workspace manipulation
alt-1 = 'workspace 1'
alt-2 = 'workspace 2'
alt-shift-1 = ['move-node-to-workspace 1', 'workspace 1']
alt-shift-2 = ['move-node-to-workspace 2', 'workspace 2']
# layout manipulation
alt-a = ['flatten-workspace-tree', 'layout accordion']
alt-t = ['flatten-workspace-tree', 'layout tiles']
# focus tiles/apps
alt-h = 'focus left'
alt-j = 'focus down'
alt-k = 'focus up'
alt-l = 'focus right'
cmd-ctrl-1 = 'exec-and-forget osascript -e "tell application \"M1.app\" to activate"'
cmd-ctrl-a = 'exec-and-forget osascript -e "tell application \"Alacritty.app\" to activate"'
cmd-ctrl-c = 'exec-and-forget osascript -e "tell application \"ChatGPT.app\" to activate"'
cmd-ctrl-f = 'exec-and-forget osascript -e "tell application \"Firefox.app\" to activate"'
cmd-ctrl-g = 'exec-and-forget osascript -e "tell application \"Figma.app\" to activate"'
cmd-ctrl-i = 'exec-and-forget osascript -e "tell application \"Messages.app\" to activate"'
cmd-ctrl-l = 'exec-and-forget osascript -e "tell application \"Linear.app\" to activate"'
cmd-ctrl-n = 'exec-and-forget osascript -e "tell application \"Notion.app\" to activate"'
cmd-ctrl-o = 'exec-and-forget osascript -e "tell application \"Obsidian.app\" to activate"'
cmd-ctrl-p = 'exec-and-forget osascript -e "tell application \"Postico 2.app\" to activate"'
cmd-ctrl-s = 'exec-and-forget osascript -e "tell application \"Slack.app\" to activate"'
cmd-ctrl-slash = 'exec-and-forget osascript -e "tell application \"Postman.app\" to activate"'
cmd-ctrl-w = 'exec-and-forget osascript -e "tell application \"WhatsApp.app\" to activate"'
cmd-ctrl-y = 'exec-and-forget osascript -e "tell application \"Spotify.app\" to activate"'
cmd-ctrl-z = 'exec-and-forget osascript -e "tell application \"zoom.us.app\" to activate"'
cmd-ctrl-backtick = 'exec-and-forget open "obsidian://open?vault=%F0%9F%A7%A0%20Brain&file=Scratchpad"'
# move tile
alt-shift-h = 'move left'
alt-shift-j = 'move down'
alt-shift-k = 'move up'
alt-shift-l = 'move right'
# resize tile
alt-minus = 'resize smart -100'
alt-equal = 'resize smart +100'
alt-0 = 'balance-sizes'
[[on-window-detected]] # move to workspace 1 by default
run = ['move-node-to-workspace 1']