在Ubuntu 18.04上,fusuma不工作

分享于 

5分钟阅读

ubuntu

  繁體

问题:

我在戴尔Vostro15-3546上安装了Ubuntu18.04.


uname -api



Linux vaishnavi-laptop 4.15.0-117-generic #118-Ubuntu SMP Fri Sep 4 20:02:41 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux



我安装了fusuma,然后当我运行sudo fusuma时:


I, [2020-09-15T09:45:33.978824 #15466] INFO -- : reload config: /home/vaishnavi/.config/fusuma/config.yml


I, [2020-09-15T09:45:34.051674 #15466] INFO -- : ---------------------------------------------


I, [2020-09-15T09:45:34.051794 #15466] INFO -- : Fusuma: 1.11.1


I, [2020-09-15T09:45:34.061094 #15466] INFO -- : libinput: 1.10.4


I, [2020-09-15T09:45:34.143106 #15466] INFO -- : OS: Linux 4.15.0-117-generic #118-Ubuntu SMP Fri Sep 4 20:02:41 UTC 2020


I, [2020-09-15T09:45:34.145421 #15466] INFO -- : Distribution: Ubuntu 18.04.4 LTS n l


I, [2020-09-15T09:45:34.147262 #15466] INFO -- : Desktop session:


I, [2020-09-15T09:45:34.147340 #15466] INFO -- : ---------------------------------------------


I, [2020-09-15T09:45:34.147393 #15466] INFO -- : Enabled Plugins: 


I, [2020-09-15T09:45:34.147612 #15466] INFO -- : Fusuma::Plugin::Buffers::GestureBuffer


I, [2020-09-15T09:45:34.147659 #15466] INFO -- : Fusuma::Plugin::Detectors::PinchDetector


I, [2020-09-15T09:45:34.147692 #15466] INFO -- : Fusuma::Plugin::Detectors::RotateDetector


I, [2020-09-15T09:45:34.147729 #15466] INFO -- : Fusuma::Plugin::Detectors::SwipeDetector


I, [2020-09-15T09:45:34.147764 #15466] INFO -- : Fusuma::Plugin::Events::Records::GestureRecord


I, [2020-09-15T09:45:34.147804 #15466] INFO -- : Fusuma::Plugin::Events::Records::IndexRecord


I, [2020-09-15T09:45:34.147948 #15466] INFO -- : Fusuma::Plugin::Events::Records::TextRecord


I, [2020-09-15T09:45:34.147979 #15466] INFO -- : Fusuma::Plugin::Executors::CommandExecutor


I, [2020-09-15T09:45:34.148008 #15466] INFO -- : Fusuma::Plugin::Filters::LibinputDeviceFilter


I, [2020-09-15T09:45:34.148039 #15466] INFO -- : Fusuma::Plugin::Filters::LibinputTimeoutFilter


I, [2020-09-15T09:45:34.148081 #15466] INFO -- : Fusuma::Plugin::Inputs::LibinputCommandInput


I, [2020-09-15T09:45:34.148119 #15466] INFO -- : Fusuma::Plugin::Parsers::LibinputGestureParser


I, [2020-09-15T09:45:34.148177 #15466] INFO -- : ---------------------------------------------



触摸板手势不能工作!

编辑:内容-/home/vaishnavi/.config/fusuma/config.yml


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




答案1:

你必须作为常规用户运行它,

几个关键的点:

  • 你"需要注销,并登录(或重新启动))
  • 当终端关闭时,fusuma -d使它在后台运行

答案2:

我建议你检查你的config.yml文件,并且安装所有的依赖项,


$ sudo apt-get install libinput-tools 


$ sudo apt-get install xdotool 


$ sudo apt install ruby 


$ sudo gem install fusuma 



 
$ whereis fusuma



假设输出将类似于/usr/local/bin/fusuma (在例子中)

像这样运行


$ sudo /usr/local/bin/fusuma