keyboard layout

This commit is contained in:
Kopatz
2025-04-28 18:10:29 +02:00
parent 61d6e8c876
commit b210e1e6d8
2 changed files with 29 additions and 9 deletions

14
flake.lock generated
View File

@@ -525,11 +525,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1743953322, "lastModified": 1745015490,
"narHash": "sha256-prQ5JKopXtzCMX2eT3dXbaVvGmzjMRE2bXStQDdazpM=", "narHash": "sha256-apEJ9zoSzmslhJ2vOKFcXTMZLUFYzh1ghfB6Rbw3Low=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hyprgraphics", "repo": "hyprgraphics",
"rev": "9d7f2687c84c729afbc3b13f7937655570f2978d", "rev": "60754910946b4e2dc1377b967b7156cb989c5873",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -556,11 +556,11 @@
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1745005494, "lastModified": 1745795931,
"narHash": "sha256-hiRVFgpUi0aHjRV3yq7Vvvg6xCjJnVmsSIoOhBMeHtY=", "narHash": "sha256-goMGHqfCb+/lkp7nfxw2UqUzYlL/CH9TVSWvwa5zXsA=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "51afc2c2910d6f7c1f2dee9c90f54729d3c3d940", "rev": "f5c5cfa960c157c8df50b496f621290234ac4505",
"revCount": 6007, "revCount": 6032,
"submodules": true, "submodules": true,
"type": "git", "type": "git",
"url": "https://github.com/hyprwm/Hyprland" "url": "https://github.com/hyprwm/Hyprland"

View File

@@ -28,8 +28,28 @@
age.identityPaths = age.identityPaths =
[ "/home/kopatz/.ssh/id_ed25519" "/etc/ssh/ssh_host_ed25519_key" ]; [ "/home/kopatz/.ssh/id_ed25519" "/etc/ssh/ssh_host_ed25519_key" ];
mainUser.layout = "de"; mainUser.layout = "de_us_swapped";
mainUser.variant = "us"; mainUser.variant = "";
console.useXkbConfig = true;
services.xserver.exportConfiguration = lib.mkForce true;
services.xserver.extraLayouts = {
de_us_swapped = {
description = "German (US, Z and Y swapped)";
languages = [ "de" ];
symbolsFile = pkgs.writeText "symbols" ''
default partial alphanumeric_keys
xkb_symbols "de_us_swapped" {
include "de(us)"
name[Group1]= "German (US, Z and Y swapped)";
key <AB01> { [ y, Y ] };
key <AD06> { [ z, Z ] };
};
'';
};
};
# Bootloader. # Bootloader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;