Just wanted to contribute the little trick I found about installing DreymaR amazing Extended Mode: I've been using it now for more than 6 monts and I couldn't live without it.
For people not aware of it, Extended mode allows to use caps lock key as an extra modifier and map keys to cursor moves, mouse button etc ...
I like it so much, that I've been trying all weekend to get it working on NIXOS... without success.
Until I decided to cheat and use `mount --bind` and discovered it has some advantage.
In NIXOS, the `xbd` diretory is not in `/usr/share/X11` but in somewhere in`nix/store/.../share/X11`, and you can't modify it. I mean you REALLY can't, so using the `install-dreymar-xmod.sh` is not an option. I tried writing my own derivation, patch xkeyboard_config etc. It dint' work. I don't see any reason it couldn't be done but I gave up. So instead of trying to copy the `xkb` directory into the nix-store, I decided to just mount the new `xkb` directory where it should be in the store
mount -bind /path-to-BigBagXbdTrix/xkb /nix/store/..../share/X11/xkb
Then I can call
setxkb.sh
and it works.It even seems to carry one working after having unmounting the directory.
So, first it's an easy solution to every body which is trying get an extended mode vi NIXOS. Second, I found
that this method was actually safer than the actual instal--dreymar-xmod.sh script. AFAIU, this script, replace the actual
/usr/share/X11/xkb directory with the bigbag version after backuping the original.
This can go wrong (and it did for me by the past). Using `mount -bind` is in a way equivalent : it replaces the original directory
with the bigbag version but as the advantage that it doesn't actuall change anything : after rebooting, you get the original version.
No need to back-up and no risk of screwing anything.
This make me things, that instead of having two scripts, one to install and one to select the keyboard, maybe we could have just one scrpit
doing a mount bind, select the keyboard and unmount it.
Just my two cents.