From a9bfbd9afdafec9b52f739607c8a982cf12c5d74 Mon Sep 17 00:00:00 2001 From: Ali Shahid <41078534+shaeinst@users.noreply.github.com> Date: Thu, 23 Jun 2022 08:12:50 +0545 Subject: [PATCH] add example to keyd.scdoc --- docs/keyd.scdoc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/keyd.scdoc b/docs/keyd.scdoc index baef920..305b5b7 100644 --- a/docs/keyd.scdoc +++ b/docs/keyd.scdoc @@ -629,6 +629,25 @@ of _will thus produce A-tab instead of M-\\_. rightshift = capslock ``` +## Example 7 + +``` + # holding capslock + tapping h/j/k/l will work as left/down/up/right. + # holding capslock + tapping keys (any other than h/j/k/l) will work as control+keys + # Tapping ESC will toggle capslock. + # Tapping capslock will activate esc. + + [main] + capslock = overload(capslock, esc) + esc = capslock + + [capslock:C] + h = left + k = up + j = down + l = right +``` + # AUTHOR Written by Raheman Vaiya (2017-).