diff --git a/nixos/base.nix b/nixos/base.nix index 75c5766b..7eb17aa9 100644 --- a/nixos/base.nix +++ b/nixos/base.nix @@ -87,15 +87,27 @@ xkbOptions = "ctrl:swapcaps"; layout = "us+rwin_as_hyper"; - extraLayouts.rwin_as_hyper = { + extraLayouts.hyper = { description = "Right Alt as Hyper key"; languages = [ ]; - symbolsFile = pkgs.writeText "rwin_as_hyper" '' + symbolsFile = pkgs.writeText "hyper" '' partial modifier_keys xkb_symbols "rwin_as_hyper" { replace key { [ Hyper_R ] }; modifier_map Mod3 { , Hyper_L, Hyper_R }; }; + + partial modifier_keys + xkb_symbols "home_as_hyper" { + replace key { [ Hyper_L ] }; + modifier_map Mod3 { , Hyper_L, Hyper_R }; + }; + + partial modifier_keys + xkb_symbols "ralt_as_hyper" { + replace key { [ Hyper_L, Hyper_L ] }; + modifier_map Mod3 { , Hyper_L }; + }; ''; };