initial commit
This commit is contained in:
parent
6671b54dd2
commit
e50591b2ec
162 changed files with 922 additions and 6328 deletions
27
nix/base/xkb_layout.nix
Normal file
27
nix/base/xkb_layout.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ pkgs
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
customKeyboardLayout = pkgs.writeText "us_int" ''
|
||||
xkb_symbols "us_int"
|
||||
{
|
||||
include "us(basic)"
|
||||
key <AC11> {[ apostrophe, dead_diaeresis, apostrophe, quotedouble ] };
|
||||
key <TLDE> {[ grave, asciitilde ] };
|
||||
};
|
||||
'';
|
||||
compiledLayout = pkgs.runCommand "keyboard-layout" { } ''
|
||||
${pkgs.xorg.xkbcomp}/bin/xkbcomp ${customKeyboardLayout} $out
|
||||
'';
|
||||
in
|
||||
{
|
||||
environment.systemPackages = [ pkgs.xorg.xkbcomp ];
|
||||
services.xserver.xkb.extraLayouts.us_int = {
|
||||
description = "US layout with 'umlaut'";
|
||||
languages = [ "eng" ];
|
||||
#symbolsFile = ${customKeyboardLayout};
|
||||
symbolsFile = /home/dashie/.config/symbols/us_int;
|
||||
};
|
||||
#services.xserver.displayManager.sessionCommands = "${pkgs.xorg.xkbcomp}/bin/xkbcomp ${compiledLayout} $DISPLAY";
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue