hammerspoon/README.md
2020-10-09 17:36:23 +08:00

77 lines
2.8 KiB
Markdown

# Hammerspoon Configuration
## Usage
1. Install [Hammerspoon](http://www.hammerspoon.org/)
2. `git clone https://github.com/sugood/hammerspoon.git ~/.hammerspoon`
## Modifier keys
| | Key |
| --------- | -------------- |
| <kbd></kbd> | Shift |
| <kbd></kbd> | Control |
| <kbd></kbd> | Option |
| <kbd></kbd> | Command |
## Features
### Window Management
#### Split Screen Actions
* <kbd></kbd><kbd></kbd><kbd></kbd> + <kbd></kbd> Left half
* <kbd></kbd><kbd></kbd><kbd></kbd> + <kbd></kbd> Right half
* <kbd></kbd><kbd></kbd><kbd></kbd> + <kbd></kbd> Top half
* <kbd></kbd><kbd></kbd><kbd></kbd> + <kbd></kbd> Bottom half
#### Quarter Screen Actions
* <kbd></kbd><kbd></kbd><kbd></kbd> + <kbd></kbd> Left top quarter
* <kbd></kbd><kbd></kbd><kbd></kbd> + <kbd></kbd> Right bottom quarter
* <kbd></kbd><kbd></kbd><kbd></kbd> + <kbd></kbd> Right top quarter
* <kbd></kbd><kbd></kbd><kbd></kbd> + <kbd></kbd> Left bottom quarter
#### Multiple Monitor
##### Move Cursor
* <kbd></kbd><kbd></kbd> + <kbd></kbd> Move cursor to next monitor
* <kbd></kbd><kbd></kbd> + <kbd></kbd> Move cursor to previous monitor
##### Move Windows
* <kbd></kbd><kbd></kbd> + <kbd></kbd> Move active window to previous monitor
* <kbd></kbd><kbd></kbd> + <kbd></kbd> Move active window to next monitor
* <kbd></kbd><kbd></kbd> + <kbd>1</kbd> Move active window to monitor 1 and maximize the window
* <kbd></kbd><kbd></kbd> + <kbd>2</kbd> Move active window to monitor 2 and maximize the window
#### Other
* <kbd></kbd><kbd></kbd><kbd></kbd> + <kbd>F</kbd> Full Screen
* <kbd></kbd><kbd></kbd><kbd></kbd> + <kbd>M</kbd> Maximize Window
* <kbd></kbd><kbd></kbd><kbd></kbd> + <kbd>C</kbd> Window Center
* <kbd></kbd><kbd></kbd> + <kbd>H</kbd> Switch active window
* <kbd></kbd><kbd></kbd> + <kbd>/</kbd> Display a keyboard hint for switching focus to each window
### System Tools
* <kbd></kbd><kbd></kbd><kbd></kbd> + <kbd>L</kbd> Lock Screen
### Launch Application
* <kbd></kbd><kbd></kbd> + <kbd>I</kbd> `IntelliJ IDEA`
* <kbd></kbd><kbd></kbd> + <kbd>T</kbd> `Terminal`
* <kbd></kbd><kbd></kbd> + <kbd>Z</kbd> `Calculator`
* <kbd></kbd><kbd></kbd> + <kbd>D</kbd> `Finder`
* <kbd></kbd><kbd></kbd> + <kbd>Q</kbd> `Activity Monitor`
* <kbd></kbd><kbd></kbd> + <kbd>S</kbd> `System Preferences`
* <kbd></kbd><kbd></kbd> + <kbd>C</kbd> `Google Chrome`
* <kbd></kbd><kbd></kbd> + <kbd>A</kbd> `Launchpad`
### Snippet & Memorandum
* <kbd></kbd><kbd></kbd> + <kbd>A</kbd> Add a snippet or memorandum
* <kbd></kbd><kbd></kbd> + <kbd>V</kbd> List snippet or memos and use them