[Nix-dev] Remapping Console Key Bindings

Mark Gardner mkg at vt.edu
Sat Jan 14 21:18:11 CET 2017


On Sat, Jan 14, 2017 at 1:32 AM, Rodney Lorrimar <dev at rodney.id.au> wrote:

> Hi Mark,
>
> This is what I do for caps lock as control key:
>
>     # configuration.nix
>     i18n.consoleKeyMap = (pkgs.writeText "keys.map" ''
>       keymaps 0-255
>       keycode 58 = Control
>     '');
>
> It works for the US keyboard layout. If you use another layout, you
> might want to edit the output of dumpkeys ("kbd" package) yourself, and
> load that file as i18n.consoleKeyMap.
>

​Thank you Rodney. That is exactly what I needed.

Mark
-- 
Mark Gardner
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20170114/fc0426b3/attachment-0001.html>


More information about the nix-dev mailing list