Skip to content

Instantly share code, notes, and snippets.

@astr0n8t
Last active May 17, 2025 18:22
Show Gist options
  • Save astr0n8t/973069d6dbe94b497990226a8cae5674 to your computer and use it in GitHub Desktop.
Save astr0n8t/973069d6dbe94b497990226a8cae5674 to your computer and use it in GitHub Desktop.
Aerospace WM with Ghostty Tab Fix
# fixes for ghostty weird tab behavior in aerospace wm
# still allows for opening multiple term windows in tiling properly
[mode.main.binding]
alt-enter = [ '''exec-and-forget osascript -e '
tell application "Ghostty"
if it is running
tell application "System Events" to tell process "Ghostty"
click menu item "New Window" of menu "File" of menu bar 1
end tell
else
activate
end if
end tell'
''', 'exec-and-forget sh -c "sleep .3 && aerospace layout tiling"' ]
[[on-window-detected]]
if.app-id = 'com.mitchellh.ghostty'
run = 'layout floating'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment