ctucx.git: nixfiles

ctucx' nixfiles

commit db981d2150245e37f612634dfc1c2457b844acfa
parent 0cd63f6011d182f92783079714ed2e5c946230a5
Author: Leah (ctucx) <leah@ctu.cx>
Date: Tue, 3 May 2022 13:35:57 +0200

programs/sway: enable `natural_scroll` for all inputs and use adaptive acceleration for magic trackpads
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/configurations/programs/sway.nix b/configurations/programs/sway.nix
@@ -102,9 +102,14 @@
 
         input = {
           "*" = {
-            xkb_layout  = "us,ru,de";
-            xkb_variant = "mac,mac,qwerty";
-            xkb_options = "grp:alt_shift_toggle";
+            xkb_layout     = "us,ru,de";
+            xkb_variant    = "mac,mac,qwerty";
+            xkb_options    = "grp:alt_shift_toggle";
+            natural_scroll = "enabled";
+          };
+
+          "1452:613:Apple_Inc._Magic_Trackpad_2" = {
+            accel_profile = "adaptive";
           };
         };