GithubHelp home page GithubHelp logo

happy-ferret / fusuma Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iberianpig/fusuma

0.0 1.0 0.0 51 KB

Multitouch gestures with libinput dirver on X11, Linux

License: MIT License

Ruby 99.35% Shell 0.65%

fusuma's Introduction

Fusuma Gem Version Build Status

Fusuma is multitouch gesture recognizer. This gem makes your linux PC able to recognize swipes or pinchs and assign shortcuts to them.

https://gyazo.com/757fef526310b9d68f68e80eb1e4540f

่ฅ–(Fusuma) means sliding door used to partition off rooms in a Japanese house.

Installation

IMPORTANT: You must be a member of the input group to have permission to read the touchpad device:

$ sudo gpasswd -a $USER input  # Log out and back in to assign this group

You need libinput release 1.0 or later. Install libinput-tools:

$ sudo apt-get install libinput-tools

For sending shortcuts:

$ sudo apt-get install xdotool

Install Fusuma:

$ gem install fusuma

Touchpad not working in GNOME

Ensure 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

Usage

$ fusuma

Update

$ gem update fusuma

Customize

You can customize the settings for gestures to put and edit ~/.config/fusuma/config.yml.
NOTE: You will need to create the ~/.config/fusuma directory if it doesn't exist yet.

Sample (default keymap for Elementary OS)

swipe:
  3: 
    left: 
      shortcut: 'alt+Left'
    right: 
      shortcut: 'alt+Right'
    up: 
      shortcut: 'ctrl+t'
    down: 
      shortcut: 'ctrl+w'
  4:
    left: 
      shortcut: 'super+Left'
    right: 
      shortcut: 'super+Right'
    up: 
      shortcut: 'super+a'
    down: 
      shortcut: 'super+s'
pinch:
  in:
    shortcut: 'ctrl+plus'
  out:
     shortcut: 'ctrl+minus'

threshold:
  swipe: 1
  pinch: 1

if shortcut: is blank, the swipe/pinch doesn't trigger a keyevent.

threshold: is sensitivity to swipe/pinch. Default value is 1. if the swipe's threshold change to 0.5, shorten swipe-length by half

Options

  • -v, --verbose : Shows details about the results of running fusuma
  • -c, --config=path/to/file : Use an alternative config file

Contributing

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.

License

The gem is available as open source under the terms of the MIT License.

fusuma's People

Contributors

iberianpig avatar z0rc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.