eyezoom res
This commit is contained in:
parent
030d01f4cb
commit
fd1bf99e60
|
@ -12,8 +12,10 @@ H="$2"
|
||||||
offx="$3"
|
offx="$3"
|
||||||
offy="$4"
|
offy="$4"
|
||||||
|
|
||||||
HFACTOR=10
|
ZH=16384
|
||||||
WFACTOR=4
|
ZW=320
|
||||||
|
|
||||||
|
WDIV=4
|
||||||
|
|
||||||
WIDEDIV=2
|
WIDEDIV=2
|
||||||
|
|
||||||
|
@ -23,11 +25,11 @@ zoomaccel=-0.9
|
||||||
|
|
||||||
case "$arg" in
|
case "$arg" in
|
||||||
eye)
|
eye)
|
||||||
${pkgs.wmctrl}/bin/wmctrl -R ':ACTIVE:' -e 0,$offx,$(( offy - (H * HFACTOR / 2) + (H / 2) )),$W,$((H*HFACTOR))
|
${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 "pointer:Logitech MX Vertical" "libinput Accel Speed" $zoomaccel
|
||||||
;;
|
;;
|
||||||
tiktok)
|
tiktok)
|
||||||
${pkgs.wmctrl}/bin/wmctrl -R ':ACTIVE:' -e 0,$(( offx - ((W/WFACTOR)/2) + (W/2))),$offy,$((W/WFACTOR)),$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 "pointer:Logitech MX Vertical" "libinput Accel Speed" $normalaccel
|
||||||
;;
|
;;
|
||||||
wide)
|
wide)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user