diff options
| -rw-r--r-- | pkgs/simple/xkeyboard_config-tv.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/simple/xkeyboard_config-tv.nix b/pkgs/simple/xkeyboard_config-tv.nix new file mode 100644 index 00000000..bc1f026f --- /dev/null +++ b/pkgs/simple/xkeyboard_config-tv.nix @@ -0,0 +1,16 @@ +# xkeyboard_config with inet symbols that make F13 to F24 produce the X +# keysyms F13 to F24. +{ lib, pkgs }: + +pkgs.xkeyboard_config.overrideAttrs (_: { + pname = "xkeyboard-config-tv"; + postFixup = /* sh */ '' + ${pkgs.gnused}/bin/sed -i -r ' + s/(key <FK(13|14|15|16|17|18|19|20|21|22|23|24)>).*/\1 { [ F\2 ] };/g + s/^xkb_symbols "evdev" .*/&\n${lib.concatStringsSep ''\n '' [ + "key <FK19> { [ F19 ] };" + "key <FK24> { [ F24 ] };" + ]}/ + ' $out/share/X11/xkb/symbols/inet + ''; +}) |
