From 2eb35410301ac9b9458ee2705b0690228c50e820 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 4 Dec 2026 00:38:43 +0000 Subject: xkeyboard_config-tv: F13 to F24, from the dirt --- pkgs/simple/xkeyboard_config-tv.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pkgs/simple/xkeyboard_config-tv.nix 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 ).*/\1 { [ F\2 ] };/g + s/^xkb_symbols "evdev" .*/&\n${lib.concatStringsSep ''\n '' [ + "key { [ F19 ] };" + "key { [ F24 ] };" + ]}/ + ' $out/share/X11/xkb/symbols/inet + ''; +}) -- cgit v1.3.1