[aerospace] Add helper functions from shell-common

This commit is contained in:
2026-01-06 22:25:52 +00:00
parent 53b22cf055
commit 48e2592add
2 changed files with 13 additions and 0 deletions

View File

@@ -288,3 +288,8 @@ run = ['layout floating']
[[on-window-detected]] [[on-window-detected]]
if.app-id = 'com.electron.logseq' if.app-id = 'com.electron.logseq'
run = 'move-node-to-workspace Q' run = 'move-node-to-workspace Q'
# Float Facetime windows
[[on-window-detected]]
if.app-id = 'com.apple.FaceTime'
run = 'layout floating'

View File

@@ -0,0 +1,8 @@
# Aerospace specific shell configuration
# Fuzzy find and focus a window using aerospace and fzf
if [ -x "$(command -v aerospace)" ] && [ -x "$(command -v fzf)" ]; then
function ff() {
aerospace list-windows --all | fzf --height 40% --layout=reverse --border --ansi | awk '{print $1}' | xargs -I {} aerospace focus --window-id {}
}
fi