blob: bc1f026f02696e9a88793552472b223a7f20f3d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
'';
})
|