Skip to content

Commit

Permalink
refactor(*): add yml for default config
Browse files Browse the repository at this point in the history
  • Loading branch information
iberianpig committed Sep 3, 2023
1 parent 7c46df0 commit 28c24cb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 deletions.
20 changes: 0 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,26 +37,6 @@ $ sudo udevadm control --reload-rules && sudo udevadm trigger
$ sudo gem install fusuma-plugin-remap
```

### Set plugin properties

Open `~/.config/fusuma/config.yml` and add the following code at the bottom in primary context(first section separated by `---`).

```yaml
plugin:
inputs:
remap_keyboard_input:
keyboard_name_patterns: xremap # (optional) specifiy other source keyboard name
buffers:
keypress_buffer:
source: remap_keyboard_input # (required) use buffer of fusuma-plugin-keypress
executors:
sendkey_executor:
device_name: fusuma_virtual_keyboard # (optional) when you use fusuma-plugin-sendkey

---

```

## Properties

### Remap
Expand Down
10 changes: 10 additions & 0 deletions lib/fusuma/plugin/inputs/remap_keyboard_input.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
plugin:
inputs:
remap_keyboard_input:
keyboard_name_patterns: ["keyboard", "Keyboard", "KEYBOARD"]
buffers:
keypress_buffer:
source: remap_keyboard_input
executors:
sendkey_executor:
device_name: fusuma_virtual_keyboard

0 comments on commit 28c24cb

Please sign in to comment.