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 ''