- Install Hammerspoon
git clone https://github.com/greyby/hammerspoon.git ~/.hammerspoon
Key | |
---|---|
⇧ | Shift |
⌃ | Control |
⌥ | Option |
⌘ | Command |
- ⌃⌥⌘ + ← Left half
- ⌃⌥⌘ + → Right half
- ⌃⌥⌘ + ↑ Top half
- ⌃⌥⌘ + ↓ Bottom half
- ⌃⌥⇧ + ← Left top quarter
- ⌃⌥⇧ + → Right bottom quarter
- ⌃⌥⇧ + ↑ Right top quarter
- ⌃⌥⇧ + ↓ Left bottom quarter
- ⌃⌥ + ← Move cursor to next monitor
- ⌃⌥ + → Move cursor to previous monitor
- ⇧⌥ + ← Move active window to previous monitor
- ⇧⌥ + → Move active window to next monitor
- ⇧⌥ + 1 Move active window to monitor 1 and maximize the window
- ⇧⌥ + 2 Move active window to monitor 2 and maximize the window
-
⌃⌥⌘ + F Full Screen
-
⌃⌥⌘ + M Maximize Window
-
⌃⌥⌘ + C Window Center
-
⇧⌥ + H Switch active window
-
⇧⌥ + / Display a keyboard hint for switching focus to each window
- ⌃⌥⌘ + L Lock Screen
- ⌃⌥⌘ + I
IntelliJ IDEA CE
- ⌃⌥⌘ + C
Google Chrome
- ⌃⌥⌘ + K
iTerm
- ⌃⌥⌘ + D
Finder
- ⌃⌥⌘ + Y
Activity Monitor
- ⌃⌥⌘ + P
System Preferences