-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Disable capslock remapper in xremap * Disable capslock with udev with specifying the device names * Don't depend on broken services.udev.extraHwdb
- Loading branch information
Showing
4 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ ... }: | ||
{ | ||
# services.udev = { | ||
# enable = true; | ||
# # Settings keyremap in raw layer than X. See GH-784 | ||
|
||
# # Specify hardware names even if `evdev:input:*` working for mostcase | ||
# extraHwdb = '' | ||
# evdev:name:Topre REALFORCE 87 US:* | ||
# # original: capslock | ||
# KEYBOARD_KEY_70039=leftctrl | ||
# ''; | ||
# }; | ||
|
||
# Settings keyremap in raw layer than X. See GH-784 | ||
# Don't use `services.udev.extraHwdb`, it does not create the file at least in NixOS 24.05 | ||
# See https://github.com/NixOS/nixpkgs/issues/182966 for detail | ||
# | ||
# - Specify hardware names even if `evdev:input:*` working for mostcase. I should care both US and JIS layout | ||
# - How to get the KEYBOARD_KEY_700??: `showkey --scancodes` in VT | ||
# - How to get the hardware name:: `udevadm info --attribute-walk /dev/input/event?? | grep -F 'ATTRS{name}'` | ||
# - How to apply?: After nixos-rebuild switch `sudo systemd-hwdb update && sudo udevadm trigger` | ||
environment.etc."udev/hwdb.d/99-local.hwdb".text = '' | ||
evdev:name:Topre REALFORCE 87 US:* | ||
KEYBOARD_KEY_70039=leftctrl # original: capslock | ||
evdev:name:Lenovo ThinkPad Compact USB Keyboard with TrackPoint:* # Both US and JIS have same name | ||
KEYBOARD_KEY_70039=leftctrl # original: capslock, Both US and JIS have same keycode for capslock | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
imports = [ | ||
../../configuration.nix | ||
../../gui.nix | ||
../../hardware.nix | ||
|
||
./hardware-configuration.nix | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters