mirror of
https://github.com/Ascyii/nixos.git
synced 2026-01-01 06:44:26 -05:00
Made it work
This commit is contained in:
@@ -1,64 +0,0 @@
|
||||
{ pkgs, inputs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
inputs.xremap-flake.nixosModules.default
|
||||
];
|
||||
|
||||
services.xremap = {
|
||||
withHypr = true;
|
||||
userName = "jonas";
|
||||
config = {
|
||||
#--------------- INFO -----------------
|
||||
# For the MOD2- part, the following prefixes can be used (also case-insensitive):
|
||||
# Shift: SHIFT-
|
||||
# Control: C-
|
||||
# Alt: M-
|
||||
# Windows: SUPER-
|
||||
# You can use multiple prefixes like C-M-Shift-a.
|
||||
# You may also suffix them with _L or _R (case-insensitive) so that remapping is triggered only on a left or right modifier, e.g. Ctrl_L-a.
|
||||
#
|
||||
# KEYS: https://github.com/emberian/evdev/blob/2d020f11b283b0648427a2844b6b980f1a268221/src/scancodes.rs#L26-L572
|
||||
modmap = [
|
||||
{
|
||||
name = "Capslock -> Esc and Ctrl";
|
||||
remap = {
|
||||
"CAPSLOCK" = {
|
||||
"alone" = "ESC";
|
||||
"held" = "CTRL_L";
|
||||
"alone_timeout_millis"= 1000;
|
||||
};
|
||||
"ESC" = "CAPSLOCK";
|
||||
# Disable this
|
||||
"CTRL_L" = {
|
||||
"alone" = "RESERVED";
|
||||
"held" = "RESERVED";
|
||||
};
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "Switch Super and Alt";
|
||||
remap = {
|
||||
"SUPER_L" = {
|
||||
"alone" = "ALT_L";
|
||||
"held" = "ALT_L";
|
||||
};
|
||||
"ALT_L" = {
|
||||
"alone" = "SUPER_L";
|
||||
"held" = "SUPER_L";
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
#keymap = [
|
||||
# {
|
||||
#name = "Remove the key next to z on a german keyboard";
|
||||
#remap = {
|
||||
#"103ND" = "RESERVED";
|
||||
#};
|
||||
# For the cutting key KEY_SYSRQ RIGHTALT for altGR
|
||||
# }
|
||||
#];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user