An open API service indexing awesome lists of open source software.

https://github.com/creasty/keyboard

Master of keyboard is master of automation (Key remapper implementation in Swift)
https://github.com/creasty/keyboard

cask hammerspoon karabiner keyboard macos

Last synced: 11 months ago
JSON representation

Master of keyboard is master of automation (Key remapper implementation in Swift)

Awesome Lists containing this project

README

          

Keyboard
========

[![Build Status](https://github.com/creasty/Keyboard/actions/workflows/build.yml/badge.svg)](https://github.com/creasty/Keyboard/actions/workflows/build.yml)
[![GitHub release](https://img.shields.io/github/release/creasty/Keyboard.svg)](https://github.com/creasty/Keyboard/releases)
[![License](https://img.shields.io/github/license/creasty/Keyboard.svg)](./LICENSE)

Master of keyboard is master of automation.

Installation
------------

```
$ brew cask install creasty/tools/keyboard
```

List of actions
---------------

`+` denotes a key sequence in the 'super key' mode which is activated by pressing and holding the first letter with no modifier keys.

### Window/space navigation

| Key | Description |
|:---|:---|
| S+H | Move to left space |
| S+L | Move to right space |
| S+J | Switch to next application |
| S+K | Switch to previous application |
| S+N | Switch to next window |
| S+B | Switch to previous window |
| S+M | Mission control |

Requirements

Open "System Preferences" and set the following shortcuts.

- `Mission Control` > `Move left a space` Ctrl-LeftArrow
- `Mission Control` > `Move right a space` Ctrl-RightArrow
- `Keyboard` > `Move focus to next window` Cmd-F1

| 1 | 2 |
|---|---|
| ![](https://user-images.githubusercontent.com/1695538/50548207-12b02800-0c8c-11e9-8dd9-527d4aed2b69.png) | ![](https://user-images.githubusercontent.com/1695538/50548209-1643af00-0c8c-11e9-9bf8-1e86ca13f4fb.png) |

### Window resizing/positioning

| Key | Description |
|:---|:---|
| S+D+F | Full screen |
| S+D+H | Left half |
| S+D+J | Bottom half |
| S+D+K | Top half |
| S+D+L | Right half |

### Emacs mode

| Key | Description | Shift allowed |
|:---|:---|:---|
| Ctrl-C | Escape | NO |
| Ctrl-D | Forward delete | NO |
| Ctrl-H | Backspace | NO |
| Ctrl-J | Enter | NO |
| Ctrl-P | :arrow_up: | YES |
| Ctrl-N | :arrow_down: | YES |
| Ctrl-B | :arrow_left: | YES |
| Ctrl-F | :arrow_right: | YES |
| Ctrl-A | Beginning of line | YES |
| Ctrl-E | End of line | YES |

### Word motions

| Key | Description |
|:---|:---|
| A+D | Delete word after cursor |
| A+H | Delete word before cursor |
| A+B | Move cursor backward by word |
| A+F | Move cursor forward by word |

### Mouse keys

Mouse button:

| Key | Description |
|:---|:---|
| C+M | Left click |
| C+, | Right click |

Cursor pointer:

| Key | Description |
|:---|:---|
| | **Parallel movements (10px)** |
| C+H | :arrow_left: |
| C+J | :arrow_down: |
| C+K | :arrow_up: |
| C+L | :arrow_right: |
| | **Parallel movements (10%)** |
| C+S+H | :arrow_left: |
| C+S+J | :arrow_down: |
| C+S+K | :arrow_up: |
| C+S+L | :arrow_right: |
| | **Diagonal movements (10px)** |
| C+H+J | ↙ |
| C+J+L | ↘ |
| C+K+L | ↗ |
| C+H+K | ↖️ |
| | **Diagonal movements (10%)** |
| C+S+H+J | ↙ |
| C+S+J+L | ↘ |
| C+S+K+L | ↗ |
| C+S+H+K | ↖️ |
| | **Quick jump actions** (Highlight enabled) |
| C+Y | Top-left corner |
| C+U | Bottom-left corner |
| C+I | Top-right corner |
| C+O | Bottom-right corner |
| C+U+I | Center of screen |

Scroll:

| Key | Description |
|:---|:---|
| C+X+H | :arrow_left: |
| C+X+J | :arrow_down: |
| C+X+K | :arrow_up: |
| C+X+L | :arrow_right: |

Highlight:

| Key | Description |
|:---|:---|
| C+Space | Highlight the location of the mouse pointer |

### Switch input source

| Key | Description |
|:---|:---|
| Ctrl-; | Selects next source in the input menu |

### Switch input source with Escape key

Change the input source to English as you leave 'insert mode' in Vim with Escape key so it can prevent IME from capturing key strokes in 'normal mode'.

| Key | Description |
|:---|:---|
| Ctrl-C | Invokes EISUU, Ctrl-C |
| Escape | Invokes EISUU, Escape |

### Switch between apps

| Key | App | Bundle ID | URL |
|:---|:---|:---|:---|
| ;+F | Finder | `com.apple.finder` | N/A |
| ;+M | Alacritty | `io.alacritty` | https://github.com/jwilm/alacritty |
| ;+T | Things | `com.culturedcode.ThingsMac` | https://culturedcode.com/things |
| ;+N | Bear | `net.shinyfrog.bear` | https://bear.app |

### Fool-safe "Quit Application"

Prevents Cmd-Q from quiting applications.

| Key | Description |
|:---|:---|
| Cmd-Q | No-op |
| Cmd-Q, Cmd-Q | Invokes Cmd-Q. Quits application |