在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):iberianpig/fusuma开源软件地址(OpenSource Url):https://github.com/iberianpig/fusuma开源编程语言(OpenSource Language):Ruby 99.9%开源软件介绍(OpenSource Introduction):FusumaFusuma is multitouch gesture recognizer. This gem makes your linux able to recognize swipes or pinchs and assign commands to them. 襖(Fusuma) means sliding door used to partition off rooms in a Japanese house. Features
InstallationGrant permission to read the touchpad deviceIMPORTANT: You MUST be a member of the INPUT group to read touchpad by Fusuma. sudo gpasswd -a $USER input Then, You apply the change with no logout or reboot. newgrp input For Debian Based Distros (Ubuntu, Debian, Mint, Pop!OS)1. Install libinput-toolsYou need sudo apt-get install libinput-tools 2. Install RubyFusuma runs in Ruby, so you must install it first. sudo apt-get install ruby 3. Install Fusumasudo gem install fusuma 4. Install xdotool (optional)For sending shortcuts: sudo apt-get install xdotool For Arch Based Distros (Manjaro, Arch)1. Install libinput.You need
2. Install RubyFusuma runs in Ruby, so you must install it first. sudo pacman -S ruby 3. Install FusumaNote: By default in Arch Linux, when running To install gems system-wide, see any of the methods listed on Arch Wiki sudo gem install fusuma 4. Install xdotool (optional)For sending shortcuts: sudo pacman -S xdotool Touchpad not working in GNOMEEnsure the touchpad events are being sent to the GNOME desktop by running the following command: gsettings set org.gnome.desktop.peripherals.touchpad send-events enabled Usagefusuma Updatesudo gem update fusuma Customize Gesture MappingYou can customize the settings for gestures to put and edit mkdir -p ~/.config/fusuma # create config directory
nano ~/.config/fusuma/config.yml # edit config file. Available gesturesswipe:
pinch:
rotate:
hold:
About YAML Basic Syntax
Example: Gesture Mapping for Ubuntuhttps://github.com/iberianpig/fusuma/wiki/Ubuntu 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
hold:
4:
command: "xdotool key super" # Activity More Example of config.ymlThe following wiki pages can be edited by everyone.
If you have a nice configuration, please share Threshold and Intervalif
Example of |
Name | Version | About |
---|---|---|
fusuma-plugin-sendkey | Emulates keyboard events | |
fusuma-plugin-wmctrl | Manages Window and Workspace | |
fusuma-plugin-keypress | Detects gestures while pressing multiple keys | |
fusuma-plugin-tap | Detects Tap and Hold gestures | |
fusuma-plugin-appmatcher | Configure app-specific gestures |
# install fusuma-plugin-XXXX
sudo gem install fusuma-plugin-XXXXX`
# update
sudo gem list fusuma-plugin- | cut -d' ' -f1 | xargs --no-run-if-empty sudo gem update
Multitouch Touchpad Gestures in Linux with Fusuma by Eric Adams
I'm a Freelance Engineer in Japan and working on these products after finishing my regular work or on my holidays. Currently, my open-source contribution times is not enough. If you like my work and want to contribute and become a sponsor, I will be able to focus on my projects.
Bug reports and pull requests are welcome on GitHub at https://github.com/iberianpig/fusuma. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论