所以就來讓 ubuntu 也能使用吧 OuO
一、讓自己成為 input 群組的成員,才有權限讀取觸控版的輸入
$ sudo gpasswd -a $USER input
二、安裝相依行的套件
$ sudo apt install xdotool wmctrl ruby
三、安裝主程式
$ gem install fusuma
四、設定
$ cd ~/.config $ mkdir fusuma $ cd fusuma $ vim config.yml
貼上以下內容:
swipe:
3:
left:
command: 'xdotool key alt+Right'
right:
command: 'xdotool key alt+Left'
up:
command: 'xdotool key super'
down:
command: 'xdotool key super'
4:
left:
command: 'xdotool key ctrl+alt+Down'
right:
command: 'xdotool key ctrl+alt+Up'
up:
command: 'xdotool key ctrl+alt+Down'
down:
command: 'xdotool key ctrl+alt+Up'
pinch:
in:
command: 'xdotool key ctrl+plus'
out:
command: 'xdotool key ctrl+minus'
threshold:
swipe: 0.4
pinch: 0.4
interval:
swipe: 0.8
pinch: 0.1
五、登入後自動執行
按 alt + F2
輸入 gnome-session-properties
按 Add
Name 輸入 fusuma (可任意)
Command 輸入 /usr/local/bin/fusuma
完成後就可以重新登入 (注意所有程式會自動強制關閉,建議先把 chrome 關掉)
登入後就可以用三、四指滑動來操作桌面了~
參考資料:
Touchpad Gestures in Ubuntu 18.04 LTS



沒有留言:
張貼留言