Linux手势控制软件,让 linux 实现触摸板多点触控与手势操作

创建配置文件

fusuma 遵循 XDG Base Directory 规范,他的配置文件位于 ~/.config/fusuma 目录下,因此执行下面命令创建配置文件:mkdir -p ~/.config/fusuma        # create config directory

touch ~/.config/fusuma/config.yml # edit config file.

配置 fusuma

编辑上面创建的配置文件即可实现以下功能:滑动 -- swipe支持三指、四指

通过 left、right、up、down 进行配置

点击 -- pinch支持 2、3、4 指

通过 in、out 进行配置

旋转 -- rotate支持 2、3、4 指

通过 clockwise、counterclockwise 进行配置

配置示例

swipe:

3:

left:

command: "xdotool key alt+Right" # History forward

right:

command: "xdotool key alt+Left" # History back

up:

command: "xdotool key super" # Activity

down:

command: "xdotool key super" # Activity

4:

left:

command: "xdotool key ctrl+alt+Down" # Switch to next workspace

right:

command: "xdotool key ctrl+alt+Up" # Switch to previous workspace

up:

command: "xdotool key ctrl+alt+Down" # Switch to next workspace

down:

command: "xdotool key ctrl+alt+Up" # Switch to previous workspace

pinch:

in:

command: "xdotool keydown ctrl click 4 keyup ctrl" # Zoom in

out:

command: "xdotool keydown ctrl click 5 keyup ctrl" # Zoom out

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值