summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-12-04 00:38:43 +0000
committertv <tv@krebsco.de>2026-12-04 03:05:12 +0000
commit2eb35410301ac9b9458ee2705b0690228c50e820 (patch)
treeec9caed33950dd24cdb8834b886f2142efd63c42
parent49ba424f34f9c4aac4b25eceedb3c8bf94654b5c (diff)
xkeyboard_config-tv: F13 to F24, from the dirt
-rw-r--r--pkgs/simple/xkeyboard_config-tv.nix16
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
+ '';
+})