Is it possible to focus a particular program within the active workspace? #1809
-
|
I want to bind numbers to specific workspaces, and bind letters to specific programs. e.g. hyper+1 switches to workspace 1, hyper+t focuses ghostty terminal within workspace 1 if it exists in workspace 1, and if ghostty does not exist in workspace 1, then it does nothing, even if ghostty exists on, say, workspace 2. This would be helpful in allowing me to have certain workspaces with just one or two programs side by side in tiling mode, and other workspaces with a bunch of applications open in floating mode, the key bindings for specific programs helpful in the latter for focussing within a workspace with several programs. Currently, if I use I want something like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
The following small script can do the job (replace
|
Beta Was this translation helpful? Give feedback.
The following small script can do the job (replace
com.apple.finderwith whatever application you want to)gxargsis a GNU version of BSDxargs(brew install findutils). if the input is empty, the GNU version will run and forward aerospace failed exit code, BSD version won't run anything. It's a subtle difference, I don't know if you care