fix eyezoom not caring about mouse var

This commit is contained in:
Rachel Lambda Samuelsson 2024-10-18 21:00:14 +02:00
parent b0caae1a47
commit b56cec8762

View File

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