Last active
May 17, 2025 18:22
-
-
Save astr0n8t/973069d6dbe94b497990226a8cae5674 to your computer and use it in GitHub Desktop.
Aerospace WM with Ghostty Tab Fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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