From b56cec87622144fc8962c552aeea48c50ebd715e Mon Sep 17 00:00:00 2001 From: depsterr Date: Fri, 18 Oct 2024 21:00:14 +0200 Subject: [PATCH] fix eyezoom not caring about mouse var --- pkgs/eyezoom.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/eyezoom.nix b/pkgs/eyezoom.nix index 2440bb6..1cedc2f 100644 --- a/pkgs/eyezoom.nix +++ b/pkgs/eyezoom.nix @@ -26,19 +26,19 @@ zoomaccel=-0.90 case "$arg" in eye) ${pkgs.wmctrl}/bin/wmctrl -R ':ACTIVE:' -e 0,$(( offx - (ZW / 2) + (W / 2) )),$(( offy - (ZH / 2) + (H / 2) )),$ZW,$((ZH)) - xinput set-prop "pointer:Logitech MX Vertical" "libinput Accel Speed" $zoomaccel + xinput set-prop "$mouse" "libinput Accel Speed" $zoomaccel ;; tiktok) ${pkgs.wmctrl}/bin/wmctrl -R ':ACTIVE:' -e 0,$(( offx - ((W/WDIV)/2) + (W/2))),$offy,$((W/WDIV)),$H - xinput set-prop "pointer:Logitech MX Vertical" "libinput Accel Speed" $normalaccel + xinput set-prop "$mouse" "libinput Accel Speed" $normalaccel ;; wide) ${pkgs.wmctrl}/bin/wmctrl -R ':ACTIVE:' -e 0,$offx,$(( offy - ((H / WIDEDIV) / 2) + (H / 2) )),$W,$((H/WIDEDIV)) - xinput set-prop "pointer:Logitech MX Vertical" "libinput Accel Speed" $normalaccel + xinput set-prop "$mouse" "libinput Accel Speed" $normalaccel ;; *) ${pkgs.wmctrl}/bin/wmctrl -R ':ACTIVE:' -e 0,$offx,$offy,$W,$H - xinput set-prop "pointer:Logitech MX Vertical" "libinput Accel Speed" $normalaccel + xinput set-prop "$mouse" "libinput Accel Speed" $normalaccel ;; esac ''