{ lib, xremap, ... }: # @note 'xremap' might need some additional configuration (e.g., user # being part of the 'input' group to detect input devices), especially # when running it *without sudo*. # # @see https://github.com/k0kubun/xremap?tab=readme-ov-file#running-xremap-without-sudo { imports = [ xremap.homeManagerModules.default ]; services.xremap = { withX11 = lib.mkDefault true; watch = true; config = { modmap = [ { name = "global"; remap = { capslock = { held = "leftctrl"; alone = "esc"; }; }; } ]; }; }; }