From 063e058ebc9450a161fb9b63dab4563e7c215640 Mon Sep 17 00:00:00 2001 From: Aria Nolan Date: Tue, 16 Jan 2024 21:15:24 -0500 Subject: [PATCH] ????????? --- modules/nixos-common.nix | 18 +++++++++++++++++- users/tacocat/wayland/sway/config | 1 - 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/modules/nixos-common.nix b/modules/nixos-common.nix index d23f151..78f6063 100644 --- a/modules/nixos-common.nix +++ b/modules/nixos-common.nix @@ -1,5 +1,4 @@ { - lib, pkgs, ... }: { @@ -53,6 +52,23 @@ security.rtkit.enable = true; services.resolved.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 = { enable = true; settings.PasswordAuthentication = false; diff --git a/users/tacocat/wayland/sway/config b/users/tacocat/wayland/sway/config index 5fd7f6c..92d719d 100755 --- a/users/tacocat/wayland/sway/config +++ b/users/tacocat/wayland/sway/config @@ -89,7 +89,6 @@ exec swayidle -w \ repeat_delay 200 repeat_rate 35 xkb_layout us - xkb_options caps:escape } #