From 775994a23193bf1e1186770492b472321e23b165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89lie=20Bouttier?= Date: Thu, 3 Oct 2024 18:02:22 +0200 Subject: [PATCH] vim nav: use tap-hold to lock or not other layers numpad & funpad: quick tap lock the layer while long tap does not --- kanata/deflayer/navigation_vim.kbd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kanata/deflayer/navigation_vim.kbd b/kanata/deflayer/navigation_vim.kbd index dfc8742..b906316 100644 --- a/kanata/deflayer/navigation_vim.kbd +++ b/kanata/deflayer/navigation_vim.kbd @@ -29,14 +29,14 @@ f1 f2 f3 f4 XX XX XX XX XX XX f5 f6 f7 f8 XX XX lctl lalt lmet _ f9 f10 f11 f12 XX XX XX XX XX XX XX - _ _ _ + @std _ @std ) (defalias std (layer-switch base) - pad (layer-switch numpad) - fun (layer-while-held funpad) + pad (tap-hold-press 0 $long_hold_timeout (layer-switch numpad) (layer-while-held numpad)) + fun (tap-hold-press 0 $long_hold_timeout (layer-switch funpad) (layer-while-held funpad)) ;; Mouse wheel emulation mwu (mwheel-up 50 120)