mirror of
https://github.com/nikdoof/dotfiles.git
synced 2026-01-30 10:58:14 +00:00
[aerospace] Add helper functions from shell-common
This commit is contained in:
8
aerospace/.config/shell-common/99_aerospace.sh
Normal file
8
aerospace/.config/shell-common/99_aerospace.sh
Normal 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
|
||||
Reference in New Issue
Block a user