Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Vonng/Capslock
Browse files Browse the repository at this point in the history
  • Loading branch information
Vonng committed Mar 8, 2021
2 parents e36064f + f59e113 commit b8e017a
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 7 deletions.
58 changes: 54 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,64 @@ Hold **✱ Hyper** to enable hyper functionalites. We will assume and omit that

### Mousekey

* Turn keypad into a mouse. with 8 direction movement

* Numbers maps to 8 direction mouse move. Hold ⌥ Option to **slow down**, hold ⌘ Command to **speed up**.

* Hold additional ⇧ Shift turns to **wheel move**. Extra ⌥ Option to **slow down**, and extra ⌘ Command to **speed up**.

* First line maps to wheel move and `0`, `.`, ``, `+`, `-` maps to five mouse buttons.

| Origin | Maps to | Comment |
| --------- | ---------------------------------- | ------------------- |
| `N` | `⌥⌫` Option + ForwardDelete | Delete a word ahead |
| `M` | `` ForwardDelete | Delete a char ahead |
| `,` | `` Delete | Delete a char after |
| `.` | `⌥⌦` Option + Delete | Delete a word after |
| `⌘M`,`⌘N` | `⌘⌥⌫` Command+Option+ForwardDelete | Delete to line head |

### Window Control

| Origin | Maps to | Comment |
| ---------------- | ----------------------- | ---------------------------------------- |
| `` Tab | `⌘⇥` Command+Tab | Switch Window |
| `⌘⇥` Command+Tab | `⌘⇧⇥` Command+Shift+Tab | Switch Window Reversely |
| `Q` | `⌘Q` | Close Window |
| `W` | `⌘W` | Close Tab |
| `A` | `⌃⌥⇧⌘A` | Leaves to [Moom](https://manytricks.com/moom/), ※a window resize app |
| `⌘A` | `⌃↑` Ctrl+UpArrow | OSX Expose All |
| `S` | `⌃⇥` Ctrl+Tab | Switch Tab |
| `⌘S` | `⌃⇧⇥` Ctrl+Shift+Tab | Swtich Tab Reversely |
| `⌘D` | `F11` | Show Desktop |

### Bash Control

- Common bash utils: EOF, SIGINT, SIGTSTP, VIM/Tmux Prefix

| Origin | Maps to | Comment |
| ------ | ----------- | -------------------------------------------- |
| `Z` | `⌃Z` Ctrl+Z | SIGTSTP |
| `X` | `⌃R` Ctrl+R | IDE Run |
| `C` | `⌃C`Ctrl+C | SIGINT |
| `V` | `⌃V`Ctrl+V | Vim Prefix |
| `B` | `⌃B`Ctrl+B | [Tmux](http://tmux.github.io) Default Prefix |
| `D` | `⌃D` Ctrl+D | EOF |

#### Applications

- Maybe you'd like overwrite these with your own favorite apps.

| Origin | Maps to | Comment |
| ------ | ----------------------- | ----------------------------------------------- |
| `E` | Open Safari | Open Web Browser |
| `⌘E` | Open Finder | Open File Browser |
| `R` | Open iTerm2 | Great terminal for osx (`Run`) |
| `⌘R` | Open Preview | Switch to opened picture, pdf, etc... |
| `T` | Open Visual Studio Code | Text Editor: Visual Studio Code |
| `⌘T` | Open Typora | Text Editor: Typora , a great WYSIWYG md editor |
| `⌘D` | Open Dictionary | Find words |
| `⌘F` | Open Dash | Find API Document |
| `F` | Open Alfred | Leaves to `⌃⌥⇧⌘F` |
| `G` | Open Intellij IDEA | Open IDE |
| `⌘G` | Open Chrome | Google Chrome |
>>>>>>> f59e11302fd30230e0cc45d65f0fc9488faea87a
| `numlock` wheel ⬅️ | `=` wheel ⬇️ | `/` wheel ⬆️ | `*` wheel ➡️ |
| :----------------: | :---------: | :---------: | :---------: |
| `7` ↖️ | 8 ⬆️ | `9` ↗️ | `-` MB4 |
Expand Down
14 changes: 11 additions & 3 deletions mac/capslock.json
Original file line number Diff line number Diff line change
Expand Up @@ -1856,7 +1856,11 @@
},
"to": [
{
"key_code": "volume_decrement"
"key_code": "volume_decrement",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
Expand All @@ -1875,7 +1879,11 @@
},
"to": [
{
"key_code": "volume_increment"
"key_code": "volume_increment",
"modifiers": [
"left_shift",
"left_option"
]
}
],
"type": "basic"
Expand Down Expand Up @@ -2443,4 +2451,4 @@
]
}
]
}
}

0 comments on commit b8e017a

Please sign in to comment.