iberianpig / fusuma-plugin-sendkey

Fusuma plugin that sending virtual keyboard events
MIT License
71 stars 2 forks source link

pinch to zoom #13

Closed sergiupopescu199 closed 1 month ago

sergiupopescu199 commented 3 years ago

Hi, I have some problems making zoom in/out using the sendkey plugin, using LEFTCTRL+KPPLUS and LEFTCTRL+KPMINUS is working but if I insert the command in the pinch section in the config.yml is not working. I'm using KDE Plasma. Could you help me understand ho to make it work? I not instakked xdotools, I must install it?

Thanks in advance

iberianpig commented 3 years ago

Could you paste output of your config.yml?

HritwikSinghal commented 3 years ago

hey @iberianpig , i am having similar issue, ZOOMIN and ZOOMOUT does not work in apps like firefox or any other app ( it logs I, [2021-04-13T10:30:15.031871 #1711537] INFO -- : {:sendkey=>"ZOOMIN"} but does nothing) but sendkey: "LEFTCTRL+KPPLUS" works fine.

This is my config

pinch:
  in:
    sendkey: "ZOOMIN" # This does not work
    sendkey: "LEFTCTRL+KPPLUS" # This works
  out:
    # sendkey: "ZOOMOUT" # Zoom out
    sendkey: "LEFTCTRL+KPMINUS" # Zoom out

threshold:
  pinch: 0.8

interval:
  pinch: 1.5

this is on libinput 17.1, Manjaro 21, Gnome 3.38, latest fusuma plugins as of 12-Apr-2021

iberianpig commented 3 years ago

It is simply that the application does not interpret ZOOMIN and ZOOMOUT. Please use sendkey: 'LEFTCTRL+EQUAL' and sendkey: 'LEFTCTRL+MINUS'.

iberianpig commented 1 month ago

If you have any further issues, please let me know.