Disable remapping caps to ctrl at xserver level

Use kanata to allow caps on tap and ctrl on hold.
This commit is contained in:
Evie Litherland-Smith 2024-11-05 10:34:24 +00:00
parent f16bd93df0
commit c47aa27321
4 changed files with 8 additions and 11 deletions

View file

@ -87,11 +87,7 @@
}; };
xserver = { xserver = {
enable = true; enable = true;
xkb = { xkb.layout = "gb";
layout = "gb";
variant = "";
options = "ctrl:nocaps";
};
}; };
}; };
xdg.portal = { xdg.portal = {

View file

@ -2,6 +2,7 @@
config, config,
lib, lib,
pkgs, pkgs,
osConfig,
... ...
}: }:
{ {
@ -175,8 +176,7 @@
]; ];
gestures.workspace_swipe = true; gestures.workspace_swipe = true;
input = { input = {
kb_layout = "gb"; kb_layout = osConfig.services.xserver.xkb.layout;
kb_options = "ctrl:nocaps";
follow_mouse = 1; follow_mouse = 1;
touchpad.natural_scroll = "yes"; touchpad.natural_scroll = "yes";
}; };

View file

@ -2,6 +2,7 @@
config, config,
lib, lib,
pkgs, pkgs,
osConfig,
... ...
}: }:
{ {
@ -75,8 +76,7 @@
config = { config = {
input = { input = {
"*" = { "*" = {
xkb_layout = "gb"; xkb_layout = osConfig.services.xserver.xkb.layout;
xkb_options = "ctrl:nocaps";
}; };
"type:touchpad" = { "type:touchpad" = {
tap = "enabled"; tap = "enabled";

View file

@ -1,5 +1,5 @@
(defsrc (defsrc
a s d f j k l ; caps a s d f j k l ;
) )
(defvar (defvar
tap-time 150 tap-time 150
@ -7,6 +7,7 @@
) )
(defalias (defalias
capsctrl (tap-hold 100 100 caps lctl)
a (tap-hold $tap-time $hold-time a lsft) a (tap-hold $tap-time $hold-time a lsft)
s (tap-hold $tap-time $hold-time s lalt) s (tap-hold $tap-time $hold-time s lalt)
d (tap-hold $tap-time $hold-time d lmet) d (tap-hold $tap-time $hold-time d lmet)
@ -18,7 +19,7 @@
) )
(deflayer base (deflayer base
@a @s @d @f @j @k @l @; @capsctrl @a @s @d @f @j @k @l @;
) )
;; Local Variables: ;; Local Variables: