mirror of
https://github.com/Ascyii/nixos.git
synced 2026-01-01 14:54:26 -05:00
First test
This commit is contained in:
0
modules/hardware/config.kbd
Normal file
0
modules/hardware/config.kbd
Normal file
@@ -1,37 +1,15 @@
|
||||
{ inputs, ... }:
|
||||
|
||||
{
|
||||
imports = [ inputs.xremap-flake.nixosModules.default ];
|
||||
imports = [ inputs.kmonad.nixosModules.default ];
|
||||
|
||||
services.xremap = {
|
||||
withHypr = true;
|
||||
userName = "jonas";
|
||||
config = {
|
||||
modmap = [
|
||||
{
|
||||
name = "Capslock to esc and ctrl";
|
||||
remap = {
|
||||
"CAPSLOCK" = {
|
||||
"alone" = "ESC";
|
||||
"held" = "CTRL_L";
|
||||
};
|
||||
"ESC" = "CAPSLOCK";
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "Switch super and alt";
|
||||
remap = {
|
||||
"SUPER_L" = {
|
||||
"alone" = "ALT_L";
|
||||
"held" = "ALT_L";
|
||||
};
|
||||
"ALT_L" = {
|
||||
"alone" = "SUPER_L";
|
||||
"held" = "SUPER_L";
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
services.kmonad = {
|
||||
enable = true;
|
||||
keyboards = {
|
||||
myKMonadOutput = {
|
||||
device = "/dev/input/by-id/usb-HyperX_Alloy_Elite_RGB_HyperX_Alloy_Elite_RGB-event-kbd";
|
||||
config = builtins.readFile ./config.kbd;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user