From 56907c18fc7baefe6ea945610248512e019dd290 Mon Sep 17 00:00:00 2001 From: heyzec <61238538+heyzec@users.noreply.github.com> Date: Sat, 21 Oct 2023 10:20:32 +0800 Subject: [PATCH] Fix nav-layer.conf example See https://github.com/rvaiya/keyd/issues/598 --- examples/nav-layer.conf | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/examples/nav-layer.conf b/examples/nav-layer.conf index 80f8b15..f032cd3 100644 --- a/examples/nav-layer.conf +++ b/examples/nav-layer.conf @@ -1,6 +1,6 @@ # Goal: # -# To create a vi like navigation layer accessible by holding capslock while having capslock +# To create a vi like navigation layer accessible by holding capslock while holding capslock # otherwise behave like the control key (when held) and escape when tapped. # # In essence we want: @@ -27,42 +27,27 @@ # - capslock+shift+k = C-S-k # .... -# This is achieved by creating a 'nested layer' called [capslock_shift] +# This is achieved by creating a composite layer called [capslock+shift] # which is activated whenever capslock and shift are simultaneously # held. -# -# The important bindings are: -# -# [shift] -# capslock = layer(capslock_shift) -# -# [capslock] -# shift = layer(capslock_shift) -[ids] +[ids] * [main] - capslock = overload(capslock, esc) -# The default shift layer (the layer activated when shift is pressed). -[shift] - -capslock = layer(capslock_shift) - [capslock:C] - -shift = layer(capslock_shift) h = left j = down k = up l = right -[capslock_shift] - +# Activates when both capslock and shift is pressed +[capslock+shift] h = C-left j = C-down k = C-up l = C-right +