From 0d02f01380a05d2a4030997fed385d952ce59088 Mon Sep 17 00:00:00 2001 From: sezanzeb Date: Sat, 19 Dec 2020 23:03:30 +0100 Subject: [PATCH] update usage.md --- readme/usage.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/readme/usage.md b/readme/usage.md index c9ec9a36..518f67a6 100644 --- a/readme/usage.md +++ b/readme/usage.md @@ -67,12 +67,13 @@ Wayland than with X11 for me. ## Configuration Files The default configuration is stored at `~/.config/key-mapper/config.json`. -The current default configuration as of commit `42cb7fe` looks like: +The current default configuration as of commit `42cb7fe` looks like, with +an example autoload entry: ```json { "autoload": { - "device name": "preset name" + "Logitech USB Keyboard": "preset" }, "macros": { "keystroke_sleep_ms": 10 @@ -88,6 +89,9 @@ The current default configuration as of commit `42cb7fe` looks like: } ``` +`preset` refers to `~/.config/key-mapper/device name/preset.json`. +`device name` can be found with `evtest`. + Anything that is relevant to presets can be overwritten in them as well. Here is an example configuration for preset "a" for the "gamepad" device: `~/.config/key-mapper/gamepad/a.json`