From 0e45e8e390be837f6eadbb7c4740fc42f30e1407 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Wed, 6 Mar 2024 16:48:01 +0800 Subject: [PATCH] home/sway: refactor inputs --- home/applications/sway/default.nix | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/home/applications/sway/default.nix b/home/applications/sway/default.nix index 2ca9556..5b318b4 100644 --- a/home/applications/sway/default.nix +++ b/home/applications/sway/default.nix @@ -54,14 +54,21 @@ ]; ### Inputs - input."*" = { - accel_profile = "flat"; - natural_scroll = "enabled"; + input = { + "*" = { + accel_profile = "flat"; + natural_scroll = "enabled"; + }; - # touchpad - tap = "enabled"; - drag = "enabled"; - dwt = "disabled"; + "type:touchpad" = { + tap = "enabled"; + drag = "enabled"; + dwt = "disabled"; + }; + + "type:keyboard" = { + xkb_options = "caps:escape"; + }; }; ### Keybinds