xmodmap: add nobreakspace and narrow nobreakspace
authorJulien Moutinho <julm+julm-nix@sourcephile.fr>
Sun, 14 Jan 2024 19:08:45 +0000 (20:08 +0100)
committerJulien Moutinho <julm+julm-nix@sourcephile.fr>
Sun, 14 Jan 2024 19:08:45 +0000 (20:08 +0100)
home-manager/profiles/graphical.nix

index 1585e597309294ea7b03faf52935a794e8be3542..84cca4ff103e1c4d0218c27f501224b298ea4c11 100644 (file)
@@ -21,6 +21,7 @@
     NO_AT_BRIDGE = "1";
   };
   services.redshift.enable = lib.mkDefault true;
+  # keycode <num> = <x> <Shift+x> _ _ <AltGr+x> <AltGr+Shift+x> _ _"
   home.file.".Xmodmap".text = ''
     ! — (tiret insécable) with AltGr+Shift+-
     keycode 15 = minus                6            bar       fiveeighths bar         U2011
     ! œ with AltGr+o
     ! Œ with AltGr+Shift+o
     keycode 32 = o                    O            o         O           oe          OE
-    ! … (ellipsis) with AltGr+
+    ! … (ellipsis) with AltGr+;
     keycode 59 = semicolon period comma less ellipsis multiply ccedilla Ccedilla
+    !   (nbsp) with AltGr+space and   (narrow nbsp) with AltGr+Shift+space
+    keycode 65 = space space NoSymbol NoSymbol nobreakspace U202F
   '';
   systemd.user.services.setxkbmap.Service.ExecStartPost =
     "${pkgs.xorg.xmodmap}/bin/xmodmap ${config.home.homeDirectory}/.Xmodmap";