From c76580004c01de3b515398d049d75a7d00ca9bf1 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Wed, 7 Jan 2026 14:34:59 +0000 Subject: [PATCH] [aerospace] Fix floating windows --- aerospace/.config/aerospace/aerospace.toml | 40 ++++++++++++++++------ ghostty/.config/ghostty/config | 4 ++- 2 files changed, 32 insertions(+), 12 deletions(-) diff --git a/aerospace/.config/aerospace/aerospace.toml b/aerospace/.config/aerospace/aerospace.toml index 0d0eb04..1d99e05 100644 --- a/aerospace/.config/aerospace/aerospace.toml +++ b/aerospace/.config/aerospace/aerospace.toml @@ -217,6 +217,11 @@ on-mode-changed = [] alt-shift-k = ['join-with up', 'mode main'] alt-shift-l = ['join-with right', 'mode main'] +# Tips for configuration: +# - Order matters (callbacks are ran in order of declaration) +# - You can use multiple 'run' commands by specifying an array +# - You can stop further callback checks by setting 'check-further-callbacks = false + # Picture-in-picture windows float [[on-window-detected]] if.window-title-regex-substring = 'Picture-in-picture' @@ -232,17 +237,18 @@ run = 'move-node-to-workspace B' if.app-id = 'com.microsoft.VSCode' run = 'move-node-to-workspace C' +# Zed settings windows float +[[on-window-detected]] +if.app-id = 'dev.zed.Zed' +if.window-title-regex-substring = '^Zed . Settings$' +run = 'layout floating' +check-further-callbacks = false + # Zed windows to workspace C [[on-window-detected]] if.app-id = 'dev.zed.Zed' run = 'move-node-to-workspace C' -# Zed settings windows float -[[on-window-detected]] -if.window-title-regex-substring = '^Zed . Settings$' -run = ['layout floating'] -check-further-callbacks = true - # Ghostty terminal windows to workspace T [[on-window-detected]] if.app-id = 'com.mitchellh.ghostty' @@ -267,22 +273,24 @@ run = 'layout floating' if.app-id = 'com.microsoft.Outlook' run = 'move-node-to-workspace W' -# Teams main window to workspace W -[[on-window-detected]] -if.app-id = 'com.microsoft.teams2' -run = 'move-node-to-workspace W' - # Meeting windows automatically float [[on-window-detected]] if.app-id = 'com.microsoft.teams2' if.window-title-regex-substring = '(Meeting|Call|Screen Share|Share)' run = ['layout floating'] +check-further-callbacks = false # Dialog windows float [[on-window-detected]] if.app-id = 'com.microsoft.teams2' if.window-title-regex-substring = '(Settings|Options|Preferences|Join|Audio|Video)' run = ['layout floating'] +check-further-callbacks = false + +# Teams main window to workspace W +[[on-window-detected]] +if.app-id = 'com.microsoft.teams2' +run = 'move-node-to-workspace W' # Logseq to workspace Q [[on-window-detected]] @@ -293,3 +301,13 @@ run = 'move-node-to-workspace Q' [[on-window-detected]] if.app-id = 'com.apple.FaceTime' run = 'layout floating' + +# Float Logi Options+ +[[on-window-detected]] +if.app-id = 'com.logi.cp-dev-mgr' +run = 'layout floating' + +# Float CoconutBattery +[[on-window-detected]] +if.app-id = 'com.coconut-flavour.coconutBattery' +run = 'layout floating' diff --git a/ghostty/.config/ghostty/config b/ghostty/.config/ghostty/config index 67fd3ab..79ac814 100644 --- a/ghostty/.config/ghostty/config +++ b/ghostty/.config/ghostty/config @@ -7,7 +7,9 @@ window-save-state = never window-new-tab-position = end theme = Snazzy Soft font-family = Jetbrains Mono -auto-update = download + +# Handled via Brew +auto-update = off auto-update-channel = stable keybind = global:cmd+\=toggle_quick_terminal