使用 libinput-gestures 在触摸板上连续捏缩放

mhh*_*ham 7 touchpad libinput

我有一个 Elantech 触摸板,正在i3wm开发 Manjaro。

我正在使用 libinput-gestures 以下列方式定义捏合手势:( ~/.config/libinput-gestures.conf)

# Zoom View In (Works in quite a few apps: Browser, Files, photos, etc...)
gesture: pinch out xdotool key control+shift+plus
#

# Zoom View Out (Works in quite a few apps: Browser, Files, photos, etc...)
gesture: pinch in xdotool key control+minus
#
Run Code Online (Sandbox Code Playgroud)

然而,这以离散的方式表现。也就是说,例如在我的 Firefox 浏览器上,缩放不是连续的而是增量的。有没有办法以libinput-gestures连续的方式配置缩放?

干杯

小智 4

不是基于 libinput-gestures 的解决方案,但我发现Fusuma有阈值和间隔的设置。

现在我的配置就像

pinch:
  in:
    shortcut: 'ctrl+shift+plus'
  out:
    shortcut: 'ctrl+minus'

threshold:
  swipe: 0.5
  pinch: 0.2

interval:
  swipe: 1 
  pinch: 0.2
Run Code Online (Sandbox Code Playgroud)

然而,很难检测到放大手势,我必须使用三个手指来确保它不会被锁定为向上/向下滑动。