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)