kali 觸摸板手勢之fusuma


1.執行如下命令進行安裝

*fusuma 需要在ruby環境下運行,若計算機不支持ruby,則先執行:apt-get install ruby

apt-get update
apt-get install libinput-tools
apt-get install xdotool
gem install fusuma

2.在~/.config/fusuma/config.yml 中配置自己的快捷方式,以下是我的更改,匹配規則是將計算機中的快捷鍵匹配為手勢,3 代表3個手指,

注:計算機的默認快捷方式可以在  設置--> 設備--> keyboard 中查看和設置

swipe:
  3:
    left:
      command: 'xdotool key ctrl+alt+Down'
    right:
      command: 'xdotool key ctrl+alt+Up'
    up:
      command: 'xdotool key super+s'
    down:
      command: 'xdotool key ctrl+alt+i'
  4:
    left:
      command: 'xdotool key super+Left'
    right:
      command: 'xdotool key super+Right'
    up:
      command: 'xdotool key super+Up'
    down:
      command: 'xdotool key super+Down'
 
pinch:
  2:
    in:
      command: 'xdotool key ctrl+equal'
    out:
      command: 'xdotool key ctrl+minus'
  4:
    in:
      command: 'xdotool key super+a'
    out:
      command: 'xdotool key super+s'
 
threshold:
  swipe: 0.3
  pinch: 0.1
 
interval:
  swipe: 1
  pinch: 1

3.設置開機fusuma 自啟動

1)終端下輸入 leafpad /usr/share/applications/fusuma.desktop

[Desktop Entry]
Encoding=UTF-8
Name=fusuma
Comment=fusuma
Exec=/var/lib/gems/2.5.0/gems/fusuma-0.10.2/exe/fusuma #這里設置為自己的路徑,可以通過 find / -name fusuma 來查找
Icon=/usr/share/icons/fusuma.png #搞一個 22*22 的png 放這個路徑下
Terminal=false  #軟件打開時是否啟動終端,這里選擇false
StartupNotify=false
Type=Application
Categories=Application;Development;

3)終端下輸入 gnome-tweaks, 在開機啟動程序里添加fusuma

 

 下次啟動的時候就可以自動啟動fusuma 了

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM