linux mint安装触控板手势fusuma

安装必要的包,终端输入:
sudo apt-get install libinput-tools
sudo apt-get install xdotool
sudo gem install fusuma
有些人可能会安装失败,因为gem要使用Ruby的环境,如果上面的第三步安装失败了,记得先使用下面这条指令安装Ruby。然后再执行上述第三条命令。
sudo apt-get install ruby
 
试用fusuma
sudo fusuma
 
 
 
fusuma配置文件
~/.config/fusuma/config.yml
swipe:
3:
left:
command: 'xdotool key alt+Right'
right:
command: 'xdotool key alt+Left'
up:
command: 'xdotool key ctrl+t'
down:
command: 'xdotool key ctrl+w'
4:
left:
command: 'xdotool key ctrl+alt+Right'
right:
command: 'xdotool key ctrl+alt+Left'
up:
command: 'xdotool key ctrl+alt+Down'
down:
command: 'xdotool key ctrl+alt+Up'
 
pinch:
2:
in:
command: 'xdotool key ctrl+equal'
out:
command: 'xdotool key ctrl+minus'
4:
in:
command: 'xdotool key ctrl+v'
out:
command: 'xdotool key alt+F10'
 
threshold:
swipe: 0.5
pinch: 0.5
 
interval:
swipe: 0.5
pinch: 0.5
posted @ 2025-01-02 11:37  Robots2  阅读(130)  评论(0)    收藏  举报