From 1d2fa7f3e64b84fa04101f441b227335c5941fe5 Mon Sep 17 00:00:00 2001 From: depsterr Date: Wed, 23 Oct 2024 14:47:52 +0200 Subject: [PATCH] eyezoom change --- pkgs/eyezoom.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/eyezoom.nix b/pkgs/eyezoom.nix index 4eca39a..4494f98 100644 --- a/pkgs/eyezoom.nix +++ b/pkgs/eyezoom.nix @@ -13,7 +13,7 @@ offx="$3" offy="$4" ZH=16384 -ZW=320 +ZW=1920 WDIV=4 @@ -21,11 +21,11 @@ WIDEDIV=2 mouse="pointer:pulsar X2H Mini" normalaccel=0 -zoomaccel=0 +zoomaccel=-0.9 case "$arg" in eye) - ${pkgs.wmctrl}/bin/wmctrl -R ':ACTIVE:' -e 0,$(( offx - (ZW / 2) + (W / 2) )),$(( offy - (ZH / 2) + (H / 2) )),$ZW,$((ZH)) + ${pkgs.wmctrl}/bin/wmctrl -R ':ACTIVE:' -e 0,$(( offx - (ZW / 2) + (W / 2) )),$(( offy - (ZH / 2) + (H / 2) )),$ZW,$ZH xinput set-prop "$mouse" "libinput Accel Speed" $zoomaccel ;; tiktok)