Skip to content

Instantly share code, notes, and snippets.

@nguyen0096
Created November 12, 2025 06:44
Show Gist options
  • Select an option

  • Save nguyen0096/e5f991978316fa093efac3940300cf36 to your computer and use it in GitHub Desktop.

Select an option

Save nguyen0096/e5f991978316fa093efac3940300cf36 to your computer and use it in GitHub Desktop.
start-at-login = false
after-login-command = []
after-startup-command = ['exec-and-forget sketchybar']
exec-on-workspace-change = ['/bin/bash', '-c',
'sketchybar --trigger aerospace_workspace_change FOCUSED_WORKSPACE=$AEROSPACE_FOCUSED_WORKSPACE PREV_WORKSPACE=$AEROSPACE_PREV_WORKSPACE'
]
enable-normalization-flatten-containers = true
enable-normalization-opposite-orientation-for-nested-containers = true
accordion-padding = 30
default-root-container-layout = 'tiles'
default-root-container-orientation = 'auto'
on-focused-monitor-changed = ['move-mouse monitor-lazy-center']
automatically-unhide-macos-hidden-apps = true
[key-mapping]
preset = 'qwerty'
[gaps]
inner.horizontal = 0
inner.vertical = 0
outer.left = 0
outer.bottom = 30
outer.top = 0 # [{ monitor."built-in" = 0 }, 30]
outer.right = 0
[mode.main.binding]
alt-shift-slash = 'layout tiles horizontal vertical'
alt-shift-period = 'layout accordion horizontal vertical'
alt-h = 'focus left'
alt-j = 'focus down'
alt-k = 'focus up'
alt-l = 'focus right'
alt-shift-h = 'move left'
alt-shift-j = 'move down'
alt-shift-k = 'move up'
alt-shift-l = 'move right'
alt-minus = 'resize smart -50'
alt-equal = 'resize smart +50'
alt-1 = 'workspace code-1'
alt-2 = 'workspace code-2'
alt-3 = 'workspace code-3'
alt-4 = 'workspace code-4'
alt-5 = 'workspace code-5'
alt-6 = 'workspace code-6'
alt-7 = 'workspace code-7'
alt-8 = 'workspace code-8'
alt-a = 'workspace assist'
alt-x = 'workspace exec'
alt-c = 'workspace comm'
alt-w = 'workspace web'
alt-t = 'workspace test'
alt-d = 'workspace db'
alt-n = 'workspace note'
alt-9 = 'workspace temp9'
alt-0 = 'workspace temp0'
alt-shift-1 = ['move-node-to-workspace code-1', 'exec-and-forget sketchybar --trigger change-window-workspace TARGET_WORKSPACE=code-1 FOCUSED_WORKSPACE=$(aerospace list-workspaces --focused)']
alt-shift-2 = ['move-node-to-workspace code-2', 'exec-and-forget sketchybar --trigger change-window-workspace TARGET_WORKSPACE=code-2 FOCUSED_WORKSPACE=$(aerospace list-workspaces --focused)']
alt-shift-3 = ['move-node-to-workspace code-3', 'exec-and-forget sketchybar --trigger change-window-workspace TARGET_WORKSPACE=code-3 FOCUSED_WORKSPACE=$(aerospace list-workspaces --focused)']
alt-shift-4 = ['move-node-to-workspace code-4', 'exec-and-forget sketchybar --trigger change-window-workspace TARGET_WORKSPACE=code-4 FOCUSED_WORKSPACE=$(aerospace list-workspaces --focused)']
alt-shift-5 = ['move-node-to-workspace code-5', 'exec-and-forget sketchybar --trigger change-window-workspace TARGET_WORKSPACE=code-5 FOCUSED_WORKSPACE=$(aerospace list-workspaces --focused)']
alt-shift-6 = ['move-node-to-workspace code-6', 'exec-and-forget sketchybar --trigger change-window-workspace TARGET_WORKSPACE=code-6 FOCUSED_WORKSPACE=$(aerospace list-workspaces --focused)']
alt-shift-7 = ['move-node-to-workspace code-7', 'exec-and-forget sketchybar --trigger change-window-workspace TARGET_WORKSPACE=code-7 FOCUSED_WORKSPACE=$(aerospace list-workspaces --focused)']
alt-shift-8 = ['move-node-to-workspace code-8', 'exec-and-forget sketchybar --trigger change-window-workspace TARGET_WORKSPACE=code-8 FOCUSED_WORKSPACE=$(aerospace list-workspaces --focused)']
alt-shift-a = ['move-node-to-workspace assist', 'exec-and-forget sketchybar --trigger change-window-workspace TARGET_WORKSPACE=assist FOCUSED_WORKSPACE=$(aerospace list-workspaces --focused)']
alt-shift-x = ['move-node-to-workspace exec', 'exec-and-forget sketchybar --trigger change-window-workspace TARGET_WORKSPACE=exec FOCUSED_WORKSPACE=$(aerospace list-workspaces --focused)']
alt-shift-c = ['move-node-to-workspace comm', 'exec-and-forget sketchybar --trigger change-window-workspace TARGET_WORKSPACE=comm FOCUSED_WORKSPACE=$(aerospace list-workspaces --focused)']
alt-shift-w = ['move-node-to-workspace web', 'exec-and-forget sketchybar --trigger change-window-workspace TARGET_WORKSPACE=web FOCUSED_WORKSPACE=$(aerospace list-workspaces --focused)']
alt-shift-t = ['move-node-to-workspace test', 'exec-and-forget sketchybar --trigger change-window-workspace TARGET_WORKSPACE=test FOCUSED_WORKSPACE=$(aerospace list-workspaces --focused)']
alt-shift-d = ['move-node-to-workspace db', 'exec-and-forget sketchybar --trigger change-window-workspace TARGET_WORKSPACE=db FOCUSED_WORKSPACE=$(aerospace list-workspaces --focused)']
alt-shift-n = ['move-node-to-workspace note', 'exec-and-forget sketchybar --trigger change-window-workspace TARGET_WORKSPACE=note FOCUSED_WORKSPACE=$(aerospace list-workspaces --focused)']
alt-shift-9 = ['move-node-to-workspace temp9', 'exec-and-forget sketchybar --trigger change-window-workspace TARGET_WORKSPACE=temp9 FOCUSED_WORKSPACE=$(aerospace list-workspaces --focused)']
alt-shift-0 = ['move-node-to-workspace temp0', 'exec-and-forget sketchybar --trigger change-window-workspace TARGET_WORKSPACE=temp0 FOCUSED_WORKSPACE=$(aerospace list-workspaces --focused)']
alt-tab = 'workspace-back-and-forth'
alt-shift-tab = ['move-workspace-to-monitor --wrap-around next', 'exec-and-forget sketchybar --trigger change-workspace-monitor TARGET_MONITOR=$(aerospace list-monitors --focused --format "%{monitor-appkit-nsscreen-screens-id}") TARGET_WORKSPACE=$(aerospace list-workspaces --focused)']
alt-shift-semicolon = 'mode service'
[mode.service.binding]
esc = 'mode main'
r = ['reload-config', 'mode main']
backspace = ['close-all-windows-but-current', 'mode main']
alt-shift-h = ['join-with left', 'mode main']
alt-shift-j = ['join-with down', 'mode main']
alt-shift-k = ['join-with up', 'mode main']
alt-shift-l = ['join-with right', 'mode main']
down = 'volume down'
up = 'volume up'
shift-down = ['volume set 0', 'mode main']
[[on-window-detected]]
# Cursor IDE
if.app-id = 'com.todesktop.230313mzl4w4u92'
run = ['move-node-to-workspace code-5']
[[on-window-detected]]
if.app-id = 'com.tdesktop.Telegram'
run = ['move-node-to-workspace comm']
[[on-window-detected]]
if.app-id = 'com.facebook.archon'
run = ['move-node-to-workspace comm']
[[on-window-detected]]
if.app-id = 'md.obsidian'
run = ['move-node-to-workspace note']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment