You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ See [input.h](https://github.com/torvalds/linux/blob/master/include/uapi/linux/i
32
32
33
33
A key event has 3 possible values: 1 (pressed), 0 (released) or 2 (autorepeat).
34
34
35
-
The role of `debouncer` is that, it can delay the keyboard "release" event for some time (+12ms is ideal for my machine), which is similar to the ["spuious" mode of libinput](https://wayland.freedesktop.org/libinput/doc/latest/button-debouncing.html).
35
+
The role of `debouncer` is that, it can delay the keyboard "release" event for some time (see #Configurations), which is similar to the ["spuious" mode of libinput](https://wayland.freedesktop.org/libinput/doc/latest/button-debouncing.html).
36
36
37
37
Once `debouncer` received a "release" event, it will wait for some time. During this time, if no "press" event of the same key comes, it will write the "release" event to `stdout`; otherwise, it will neglect this event.
38
38
@@ -109,9 +109,14 @@ ExecStartPre=/usr/bin/sleep .7 # 700ms is fine on my machine
109
109
110
110
## Configurations
111
111
112
-
You can set some configurations in `/etc/debouncer.toml`. Currently supported items are:
112
+
You can set some configurations in `/etc/debouncer.toml`. Here is my configurations:
113
113
114
-
- **`exceptions`: array of `u16` keycodes**. Keys in the exceptions will not delayed. For example, I want to neglect modifier keys such as Ctrl, Alt, Shift and Meta. Here is my config:
115
114
```toml
116
115
exceptions=[29,42,54,56,97,100,125]
116
+
debounce_time=14
117
117
```
118
+
119
+
Currently supported items are:
120
+
121
+
- **`exceptions`: array of `u16` keycodes**. Keys in the exceptions will not delayed. For example, I want to neglect modifier keys such as Ctrl, Alt, Shift and Meta.
122
+
- **`debounce_time`: `u64` value in milliseconds**. Indicates how long should a release event delayed. For example, 14ms is ideal for my machine.
0 commit comments