-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add xremap command key #767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
0575891
d025543
3ca6586
066a55a
da5d6cf
ea4bcb5
bebc4ca
2f39ca7
8ebb335
7fbb23f
fecfcbc
c08b0e1
3b232e4
9aa681f
cec3950
671c3eb
9444237
7fd6611
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -36,6 +36,9 @@ inputs.nixpkgs.lib.nixosSystem { | |||||
| # Keyd configuration | ||||||
| ../../config/keyd | ||||||
|
|
||||||
| # Xremap module | ||||||
| inputs.xremap.nixosModules.default | ||||||
|
|
||||||
| # Base system configuration | ||||||
| ( | ||||||
| { config, lib, ... }: | ||||||
|
|
@@ -63,6 +66,7 @@ inputs.nixpkgs.lib.nixosSystem { | |||||
| extraGroups = [ | ||||||
| "wheel" | ||||||
| "networkmanager" | ||||||
| "input" | ||||||
| "video" | ||||||
| ]; | ||||||
| home = "/home/${username}"; | ||||||
|
|
@@ -72,6 +76,128 @@ inputs.nixpkgs.lib.nixosSystem { | |||||
|
|
||||||
| security.sudo.wheelNeedsPassword = false; | ||||||
|
|
||||||
| # Input remapping (xremap) | ||||||
| hardware.uinput.enable = true; | ||||||
| services.udev.extraRules = '' | ||||||
| KERNEL=="uinput", GROUP="input", TAG+="uaccess", MODE:="0660", OPTIONS+="static_node=uinput" | ||||||
|
||||||
| KERNEL=="uinput", GROUP="input", TAG+="uaccess", MODE:="0660", OPTIONS+="static_node=uinput" | |
| KERNEL=="uinput", TAG+="uaccess", MODE:="0660", OPTIONS+="static_node=uinput" |
Copilot
AI
Feb 9, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The numbers list skips "3", "4", and "5", so Hyper+3/4/5 won’t be remapped (and the omission is easy to miss because other sets are complete). If this is meant to cover all number keys, include the missing digits or generate the list programmatically to avoid accidental gaps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding the user to the
inputgroup grants broad read access to/dev/input/event*on many systems (i.e., keylogging capability). If xremap only needs access to/dev/uinput, consider avoidinginputgroup membership and instead granting access just to the uinput node via a dedicated group oruaccesson that device only, to keep privileges minimal.