创建配置文件
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