All Projects → iberianpig → fusuma-plugin-tap

iberianpig / fusuma-plugin-tap

Licence: MIT license
Tap and Hold gestures plugin for Fusuma

Programming Languages

ruby
36898 projects - #4 most used programming language
Makefile
30231 projects
shell
77523 projects

Projects that are alternatives of or similar to fusuma-plugin-tap

fusuma-plugin-keypress
Keypress combination plugin for Fusuma
Stars: ✭ 21 (+31.25%)
Mutual labels:  fusuma, fusuma-plugin
fusuma-plugin-wmctrl
Window Manager plugin for Fusuma
Stars: ✭ 36 (+125%)
Mutual labels:  fusuma, fusuma-plugin
Showtime
The easiest way to show off your iOS taps and gestures for demos and videos.
Stars: ✭ 281 (+1656.25%)
Mutual labels:  tap, gesture
fusuma-plugin-sendkey
Fusuma plugin that sending virtual keyboard events
Stars: ✭ 41 (+156.25%)
Mutual labels:  fusuma, fusuma-plugin
gestures
A library for normalized events and gesture for desktop and mobile.
Stars: ✭ 31 (+93.75%)
Mutual labels:  tap, gesture
XamarinFormsGesture
Xamarin Form Gesture Effects
Stars: ✭ 85 (+431.25%)
Mutual labels:  tap, gesture
Any Touch
👋 手势库, 按需2kb~5kb, 兼容PC / 移动端
Stars: ✭ 567 (+3443.75%)
Mutual labels:  tap, gesture
Homebrew Services
🚀 Manage background services with macOS' launchctl daemon manager
Stars: ✭ 1,656 (+10250%)
Mutual labels:  tap
Homebrew Command Not Found
🔍 Ubuntu’s command-not-found equivalent for Homebrew on macOS
Stars: ✭ 236 (+1375%)
Mutual labels:  tap
Ava Ts
🚀 Fork of the AVA test runner with native typescript support
Stars: ✭ 114 (+612.5%)
Mutual labels:  tap
Libtuntap
The portable Tun/Tap devices configuration utility
Stars: ✭ 107 (+568.75%)
Mutual labels:  tap
React Cursor Position
A React component that decorates its children with mouse and touch coordinates relative to itself.
Stars: ✭ 136 (+750%)
Mutual labels:  tap
GestureControlledCamera2D
A Camera2D node controlled through gestures. It's also an example of how to use the Godot Touch Input Manager.
Stars: ✭ 39 (+143.75%)
Mutual labels:  gesture
Androiduigesturerecognizer
AndroidGestureRecognizer is an Android implementation of the Apple's UIGestureRecognizer framework
Stars: ✭ 119 (+643.75%)
Mutual labels:  tap
karma-tap
Let your Karma tests to consume TAP output
Stars: ✭ 29 (+81.25%)
Mutual labels:  tap
Zap
A streamable structured interface for real time reporting of developer tools.
Stars: ✭ 114 (+612.5%)
Mutual labels:  tap
btt
Low level MacOS management in JavaScript via BetterTouchTool
Stars: ✭ 92 (+475%)
Mutual labels:  gesture
homebrew-apple-fonts
Easily install Apples fonts using homebrew.
Stars: ✭ 12 (-25%)
Mutual labels:  tap
Bats Core
Bash Automated Testing System
Stars: ✭ 2,820 (+17525%)
Mutual labels:  tap
Homebrew Terraforms
Homebrew repository for a Terraform version switcher and all Terraform versions
Stars: ✭ 174 (+987.5%)
Mutual labels:  tap

Fusuma::Plugin::Tap Gem Version Build Status

Tap gestures plugin for Fusuma

  • Add Tap gestures with 1, 2, 3, 4 fingers
  • Add Hold gestures with 1, 2, 3, 4 fingers

Installation

Run the following code in your terminal.

Install fusuma-plugin-tap

$ sudo gem install fusuma-plugin-tap

Add verbose and enable-tap

NOTE: Fusuma require "Tap to click" and "verbose" option to libinput

Open ~/.config/fusuma/config.yml and add the following code at the bottom. If you already have libinput_command_input section, just add enable-tap and verbose: true.

plugin: 
  inputs:
    libinput_command_input:
      enable-tap: true
      verbose: true

Add tap and hold parameter

Set tap: and :hold property and values under gesture in ~/.config/fusuma/config.yml.

tap:
  1:
    command: "echo ----------------tap1----------------------------"
  2:
    command: "echo ----------------tap2----------------------------"
  3:
    command: "echo ----------------tap3----------------------------"
  4:
    command: "echo ----------------tap4----------------------------"

hold:
  1:
    command: "echo ----------------hold1----------------------------"
  2:
    command: "echo ----------------hold2----------------------------"
  3:
    command: "echo ----------------hold3----------------------------"
  4:
    command: "echo ----------------hold4----------------------------"

plugin: 
  inputs:
    libinput_command_input:
      enable-tap: true
      verbose: true

Known issues

  • libinput debug-events --verbose outputs is unstable, so it may not work properly with some versions of libinput.
  • libinput 1.10.4 contains a bug that suddenly stopped detecting taps.

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Testing with multiple version of libinput

See: Use latest libinput on fusuma · iberianpig/fusuma Wiki

Install direnv to change the version of libinput from environment variables.

sudo apt install direnv

create .envrc

touch .envrc

modify .envrc

export LIBINPUT_VERSION=1.17.0
export LIBINPUT_REPO=/path/to/git/repository/of/libinput
export LIBINPUT_REPO=/path/to/git/repository/of/libinput

Apply changes .envrc

$ direnv allow

Build libinput

$ make build

Change to pre-built version

  • modify LIBINPUT_VERSION in .envrc
  • check version with $ direnv allow && make version

Generate stub of libinput-debug-events for RSpec

bundle exec bin/libinput_debug_events_generator.rb

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/iberianpig/fusuma-plugin-tap. 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.

Code of Conduct

Everyone interacting in the Fusuma::Plugin::Tap project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].