Add Rupert’s configuration
This commit is contained in:
commit
2b4264d32d
31 changed files with 1742 additions and 0 deletions
16
base/xkb/default.nix
Normal file
16
base/xkb/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ ... }:
|
||||
{
|
||||
services.xserver.layout = "us-fruchti";
|
||||
services.xserver.extraLayouts = {
|
||||
de-fruchti = {
|
||||
description = "DE layout with some small changes";
|
||||
languages = [ "deu" ];
|
||||
symbolsFile = ./symbols/de-fruchti;
|
||||
};
|
||||
us-fruchti = {
|
||||
description = "US-altgr-intl layout with some small changes";
|
||||
languages = [ "eng" ];
|
||||
symbolsFile = ./symbols/us-fruchti;
|
||||
};
|
||||
};
|
||||
}
|
8
base/xkb/symbols/de-fruchti
Normal file
8
base/xkb/symbols/de-fruchti
Normal file
|
@ -0,0 +1,8 @@
|
|||
xkb_symbols "de-fruchti"
|
||||
{
|
||||
include "de(basic)"
|
||||
|
||||
// Swap insert/print screen
|
||||
key <PRSC> { [ Insert ] };
|
||||
key <INS> { [ Print ] };
|
||||
};
|
44
base/xkb/symbols/us-fruchti
Normal file
44
base/xkb/symbols/us-fruchti
Normal file
|
@ -0,0 +1,44 @@
|
|||
partial alphanumeric_keys
|
||||
xkb_symbols "us-fruchti" {
|
||||
include "us(altgr-intl)"
|
||||
name[Group1]="English (intl., with AltGr dead keys, customised)";
|
||||
|
||||
key <AC02> {
|
||||
// Change: Replace section with U1E9E (capital sharp s)
|
||||
[ s, S, ssharp, U1E9E ]
|
||||
};
|
||||
key <AC04> {
|
||||
// Change: Replace f with U017F (long s)
|
||||
// Change: Replace F with section
|
||||
[ f, F, U017F, section ]
|
||||
};
|
||||
key <AC05> {
|
||||
// Change: replace g with doublelowquotemark
|
||||
// Change: replace G with singlelowquotemark
|
||||
[ g, G, doublelowquotemark, singlelowquotemark ]
|
||||
};
|
||||
key <AC06> {
|
||||
// Change: replace h with leftdoublequotemark
|
||||
// Change: replace H with leftsinglequotemark
|
||||
[ h, H, leftdoublequotemark, leftsinglequotemark ]
|
||||
};
|
||||
key <AC08> {
|
||||
// oe/OE are already available with AltGr+(Shift+)X
|
||||
// Change: Replace oe with endash
|
||||
// Change: Replace OE with emdash
|
||||
[ k, K, endash, emdash ]
|
||||
};
|
||||
key <AB05> {
|
||||
// Change: Replace b with U2026 (ellipsis)
|
||||
// Change: Replace B with Greek_OMEGA
|
||||
[ b, B, U2026, Greek_OMEGA ]
|
||||
};
|
||||
key <AB07> {
|
||||
// Change: Replace mu with endash
|
||||
[ m, M, mu, endash ]
|
||||
};
|
||||
key <SPCE> {
|
||||
// Change: Add thinspace for AltGr+Space
|
||||
[ space, space, U2009, nobreakspace ]
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue