fix eyezoom not caring about mouse var
This commit is contained in:
parent
b0caae1a47
commit
b56cec8762
|
@ -26,19 +26,19 @@ zoomaccel=-0.90
|
||||||
case "$arg" in
|
case "$arg" in
|
||||||
eye)
|
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 "pointer:Logitech MX Vertical" "libinput Accel Speed" $zoomaccel
|
xinput set-prop "$mouse" "libinput Accel Speed" $zoomaccel
|
||||||
;;
|
;;
|
||||||
tiktok)
|
tiktok)
|
||||||
${pkgs.wmctrl}/bin/wmctrl -R ':ACTIVE:' -e 0,$(( offx - ((W/WDIV)/2) + (W/2))),$offy,$((W/WDIV)),$H
|
${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)
|
wide)
|
||||||
${pkgs.wmctrl}/bin/wmctrl -R ':ACTIVE:' -e 0,$offx,$(( offy - ((H / WIDEDIV) / 2) + (H / 2) )),$W,$((H/WIDEDIV))
|
${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
|
${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
|
esac
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in New Issue
Block a user