From c067390c9d0d40cb174b161a867926a8bc407bf8 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Thu, 8 Aug 2024 17:04:30 -0700 Subject: [PATCH] feat: add keyd remapping for callisto --- hosts/callisto/default.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/hosts/callisto/default.nix b/hosts/callisto/default.nix index ba3e411..235304e 100755 --- a/hosts/callisto/default.nix +++ b/hosts/callisto/default.nix @@ -165,6 +165,31 @@ environment.variables = { EDITOR = "nvim"; NIX_AUTO_RUN = 1; + + }; + services.keyd = { + enable = true; + keyboards = { + default = { + ids = [ "*" ]; + settings = { + main = { + capslock = "esc"; + leftmeta = "leftcontrol"; + leftalt = "leftmeta"; + leftcontrol = "leftalt"; + rightmeta = "leftalt"; + rightalt = "layer(rightalt)"; + }; + rightalt = { + i = "up"; + j = "left"; + k = "down"; + l = "right"; + }; + }; + }; + }; }; # tells electron apps to use Wayland