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 = {
enable = true;
xkb = {
layout = "gb";
variant = "";
options = "ctrl:nocaps";
};
xkb.layout = "gb";
};
};
xdg.portal = {

View file

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

View file

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

View file

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