?????????

This commit is contained in:
Aria Nolan 2024-01-16 21:15:24 -05:00
parent d9fbf9a69f
commit 063e058ebc
2 changed files with 17 additions and 2 deletions

View file

@ -1,5 +1,4 @@
{ {
lib,
pkgs, pkgs,
... ...
}: { }: {
@ -53,6 +52,23 @@
security.rtkit.enable = true; security.rtkit.enable = true;
services.resolved.enable = true; services.resolved.enable = true;
services.udisks2.enable = true; services.udisks2.enable = true;
services.interception-tools = {
enable = true;
plugins = with pkgs.interception-tools-plugins; [
dual-function-keys
];
udevmonConfig = ''
- JOB: "${pkgs.interception-tools}/bin/intercept -g $DEVNODE | ${pkgs.interception-tools-plugins.dual-function-keys}/bin/dual-function-keys -c /etc/interception/dual-function-keys/my-mappings.yaml | ${pkgs.interception-tools}/bin/uinput -d $DEVNODE"
DEVICE:
NAME: "Barcode Reader"
'';
};
environment.etc."interception/dual-function-keys/my-mappings.yaml".text = ''
MAPPINGS:
- KEY: KEY_CAPSLOCK
- TAP: KEY_ESC
- HOLD: KEY_MSDOS
'';
services.openssh = { services.openssh = {
enable = true; enable = true;
settings.PasswordAuthentication = false; settings.PasswordAuthentication = false;

View file

@ -89,7 +89,6 @@ exec swayidle -w \
repeat_delay 200 repeat_delay 200
repeat_rate 35 repeat_rate 35
xkb_layout us xkb_layout us
xkb_options caps:escape
} }
# #