quatquatt / nixos

My NixOS config
3 stars 1 forks source link

Make the escape key do nothing, and the caps lock key do escape #52

Open quatquatt opened 1 day ago

quatquatt commented 1 day ago

Currently, the closest thing we have to this is swapping caps lock and escape. But this means that whenever I get the muscle memory to click escape, it turns on caps lock suddenly. I'd prefer a custom layout that did this. Of course, it's not that simple. Useful links to reference:

https://wiki.nixos.org/wiki/Keyboard_Layout_Customization https://github.com/NixOS/nixpkgs/issues/275351 https://wiki.archlinux.org/title/X_keyboard_extension https://jip.dev/posts/custom-xkb-options-with-gnome/

quatquatt commented 1 day ago

Check this out https://github.com/dmarcoux/dotfiles/commit/272eb7e9b97957d542cf78fe5f73b16043dbf4c4

quatquatt commented 1 day ago

The way I see it, we have a few options here:

quatquatt commented 1 day ago

Got something working with the xkb way in ea918e9af663545581219613036390ca8a0bb1c4. A few notes:

Good luck future me, and anyone else coming across this!