From 207b794431e7472567ecb47f63898ff0b8d1f61a Mon Sep 17 00:00:00 2001 From: m3tam3re
Date: Sat, 5 Sep 2026 09:28:05 +0200 Subject: [PATCH] chore: hyprland keybindings --- profiles/contexts/desktop/wm/hyprland.nix | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/profiles/contexts/desktop/wm/hyprland.nix b/profiles/contexts/desktop/wm/hyprland.nix index c9493ac..0b62707 100644 --- a/profiles/contexts/desktop/wm/hyprland.nix +++ b/profiles/contexts/desktop/wm/hyprland.nix @@ -89,7 +89,7 @@ in { force_zero_scaling = true; }; input = { - kb_layout = "us"; + kb_layout = "us,de"; kb_variant = ""; kb_model = ""; kb_rules = ""; @@ -151,7 +151,6 @@ in { ]; device = [ - # Alle normalen Keyboards explizit auf de setzen: { name = "video-bus"; kb_layout = "de,us"; @@ -174,23 +173,28 @@ in { } { name = "keychron-keychron-k7"; - kb_layout = "us"; + kb_layout = "us,de"; kb_options = "ctrl:nocaps"; } - # Moonlander Sub-Devices bleiben us (erben global) + # Moonlander Sub-Devices bleiben us zuerst (de als zweites Layout): { name = "zsa-technology-labs-moonlander-mark-i-consumer-control"; - kb_layout = "us"; + kb_layout = "us,de"; kb_options = "ctrl:nocaps"; } { name = "zsa-technology-labs-moonlander-mark-i-keyboard"; - kb_layout = "us"; + kb_layout = "us,de"; kb_options = "ctrl:nocaps"; } { name = "zsa-technology-labs-moonlander-mark-i-system-control"; - kb_layout = "us"; + kb_layout = "us,de"; + kb_options = "ctrl:nocaps"; + } + { + name = "asustek-computer-inc.-gz302ea-keyboard"; + kb_layout = "de,us"; kb_options = "ctrl:nocaps"; } ]; @@ -487,6 +491,7 @@ in { (mkBinding (modKey "mouse_up") (focusWorkspace "e-1")) (mkBindingWithOptions (modKey "mouse:272") "hl.dsp.window.drag()" {mouse = true;}) (mkBindingWithOptions (modKey "mouse:273") "hl.dsp.window.resize()" {mouse = true;}) + (mkBinding (modKey "SPACE") (execCmd "hyprctl switchxkblayout current next")) ]; }; };