eyezoom change

This commit is contained in:
Rachel Lambda Samuelsson 2024-10-23 14:47:52 +02:00
parent c19c4058b1
commit 1d2fa7f3e6

View File

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