Revert "[NixOS] Fix keyboard configuration compilation"

This reverts commit dd441126be.
This commit is contained in:
Ivan Malison 2021-07-19 22:01:05 -06:00
parent dd441126be
commit 582d9a3939
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -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 <RWIN> { [ Hyper_R ] };
modifier_map Mod3 { <HYPR>, Hyper_L, Hyper_R };
};
partial modifier_keys
xkb_symbols "home_as_hyper" {
replace key <HOME> { [ Hyper_L ] };
modifier_map Mod3 { <HOME>, Hyper_L, Hyper_R };
};
partial modifier_keys
xkb_symbols "ralt_as_hyper" {
replace key <RALT> { [ Hyper_L, Hyper_L ] };
modifier_map Mod3 { <RALT>, Hyper_L };
};
'';
};