hammerspoon 个人二次定制的功能
| modules | ||
| history.json | ||
| init.lua | ||
| LICENSE | ||
| README_zh-CN.md | ||
| README.md | ||
Hammerspoon Configuration
Usage
- Install Hammerspoon
git clone https://github.com/sugood/hammerspoon.git ~/.hammerspoon
Modifier keys
| Key | |
|---|---|
| ⇧ | Shift |
| ⌃ | Control |
| ⌥ | Option |
| ⌘ | Command |
Features
Window Management
Split Screen Actions
- ⌃⌥⌘ + ← Left half
- ⌃⌥⌘ + → Right half
- ⌃⌥⌘ + ↑ Top half
- ⌃⌥⌘ + ↓ Bottom half
Quarter Screen Actions
- ⌃⌥⇧ + ← Left top quarter
- ⌃⌥⇧ + → Right bottom quarter
- ⌃⌥⇧ + ↑ Right top quarter
- ⌃⌥⇧ + ↓ Left bottom quarter
Multiple Monitor
Move Cursor
- ⌃⌥ + ← Move cursor to next monitor
- ⌃⌥ + → Move cursor to previous monitor
Move Windows
- ⇧⌥ + ← 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
Other
-
⌃⌥⌘ + F Full Screen
-
⌃⌥⌘ + M Maximize Window
-
⌃⌥⌘ + C Window Center
-
⇧⌥ + H Switch active window
-
⇧⌥ + / Display a keyboard hint for switching focus to each window
System Tools
- ⌃⌥⌘ + L Lock Screen
Launch Application
- ⌃⇧ + I
IntelliJ IDEA - ⌃⇧ + T
Terminal - ⌃⇧ + Z
Calculator - ⌃⇧ + D
Finder - ⌃⇧ + Q
Activity Monitor - ⌃⇧ + S
System Preferences - ⌃⇧ + C
Google Chrome - ⌃⇧ + A
Launchpad
Snippet & Memorandum
- ⌃⇧ + A Add a snippet or memorandum
- ⌃⇧ + V List snippet or memos and use them