From 175b27923c9af16c9adb2efddd10396d1f5007fd Mon Sep 17 00:00:00 2001 From: Raheman Vaiya Date: Sun, 30 Jan 2022 13:54:58 -0500 Subject: [PATCH] Add nested layer example --- examples/nav-layer.conf | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 examples/nav-layer.conf diff --git a/examples/nav-layer.conf b/examples/nav-layer.conf new file mode 100644 index 0000000..9fe5345 --- /dev/null +++ b/examples/nav-layer.conf @@ -0,0 +1,33 @@ +[ids] + +* + +[main] + +capslock = overload(capslock, esc) + +[shift] + +# Causes shift+capslock (in that order) to activate [capslock_shift] +capslock = layer(capslock_shift) + +# capslock will behave as (real/stackable) control in all instances except hjkl +# in which case it will behave as the arrow keys. + +[capslock:C] + +# Causes capslock+shift (in that order) to activate [capslock_shift] +shift = layer(capslock_shift) +h = left +j = down +k = up +l = right + +# nested layer accessible with capslock+shift + +[capslock_shift] + +h = C-left +j = C-down +k = C-up +l = C-right