How can I switch among application windows using Cmd/Opt + 1/2/3... etc, like on Unity or KDE?
Why? This is especially handy if you often switch among the same few apps, e.g. a browser, a file manager and an IDE, but also have other apps open, so Alt+Tabbing to the desired window would take more time.
That keyboard shortcut saves me probably 5 seconds per minute on the average, so ~40 minutes a day, and it's supported by Windows as well.
I tried using the native Automator and Keyboard shortcuts in System settings, but the shortcut is only picked up in some applications (e.g. Automator, Webstorm), but most applications seem to consume it before it reaches the system.
To create the shortcut with Automator:
- ⌘+Space and launch Automator
- Choose "Quick action"
- Set the "Workflow receives current" to no "input"
- In the panel on the left, filter for the Run Shell Script Action and double click it
- In the
Run shell script
text area, replacecat
with the command to run your application, e.g.open -a "Google Chrome"
. - File -> Save and name your shortcut, e.g.
Chrome launch/switch to
Assign the keyboard shortcut
- ⌘+Space and type
keyboard shortcuts
to access it in System Settings - Click Services -> General and you'll see your newly created shortcut
- Double click
none
and press your hotkey combo, e.g. ⌘+1 - Click Done
I'm looking for a more reliable solution than the system's Keyboard shortcuts.