From 1a3814680b8bcb1adaf4fcd2e6eb7aa821a8da23 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Mon, 5 Dec 2022 22:50:32 -0500 Subject: [PATCH] delete scroll-boost patch --- modules/scroll-boost/default.nix | 20 -------------------- modules/scroll-boost/libinput.patch | 12 ------------ 2 files changed, 32 deletions(-) delete mode 100644 modules/scroll-boost/default.nix delete mode 100644 modules/scroll-boost/libinput.patch diff --git a/modules/scroll-boost/default.nix b/modules/scroll-boost/default.nix deleted file mode 100644 index 85c04ae..0000000 --- a/modules/scroll-boost/default.nix +++ /dev/null @@ -1,20 +0,0 @@ -{ config, lib, ... }: -let - cfg = config.sconfig.scroll-boost; -in -{ - options.sconfig.scroll-boost = lib.mkEnableOption "Patch xf86-libinput scroll speed"; - - config = lib.mkIf cfg { - nixpkgs.overlays = [ - (self: super: { - xorg = super.xorg.overrideScope' (selfB: superB: { - inherit (super.xorg) xlibsWrapper; - xf86inputlibinput = superB.xf86inputlibinput.overrideAttrs (attr: { - patches = [ ./libinput.patch ]; - }); - }); - }) - ]; - }; -} diff --git a/modules/scroll-boost/libinput.patch b/modules/scroll-boost/libinput.patch deleted file mode 100644 index a0df4f9..0000000 --- a/modules/scroll-boost/libinput.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/src/xf86libinput.c b/src/xf86libinput.c -index 620af6d..d1bf974 100644 ---- a/src/xf86libinput.c -+++ b/src/xf86libinput.c -@@ -1618,6 +1618,7 @@ calculate_axis_value(struct xf86libinput *driver_data, - source = libinput_event_pointer_get_axis_source(event); - if (source == LIBINPUT_POINTER_AXIS_SOURCE_WHEEL) { - value = get_wheel_scroll_value(driver_data, event, axis); -+ value *= 2; - } else { - value = libinput_event_pointer_get_axis_value(event, axis); - }