Coder Social home page Coder Social logo

abondis / gester Goto Github PK

View Code? Open in Web Editor NEW

This project forked from witty91/gester

0.0 1.0 0.0 39 KB

Gester is a gesture interpreting program for touchscreens, that I wrote for my Lenovo Thinkpad L380 Yoga.

License: GNU Lesser General Public License v3.0

Makefile 4.51% C++ 95.49%

gester's Introduction

gester

Gester is a gesture interpreting program for touchscreens, that I wrote for my Lenovo Thinkpad L380 Yoga. It has however been shown that this can run on touchscreens, touchpads and even a Nintendo Switch! The gesture interpretation is being done directly in the program, not relying on other programs, which does allow for easy addition of gestures. Right now there are 1-finger swipes from the screen edges, multi-finger swipes in up/down/left/right and rotations. Each gesture triggers a syscall, which can be set in the config.h file, and rotational gestures will have a value depending on the angle (scaled by a factor) appended. This allows for turning volume or screen brightness in a way that is supposed to feel more like turning a knob.

configuration and installation

Everything that is supposed to be configured by the user can be found in the config.h file. I took this idea from the suckless tools, which I really like. When everything is configured correctly one can just run the commands make and sudo make install which will install the compiled binary into /usr/local/bin/ .

supported gestures

Currently the following gestures have been implemented:

  • 1-5 finger swipes from top, bottom, left and right edges of the screen
  • 2-5 finger swipes up, down, left and right
  • 2-5 finger rotations clockwise and counterclockwise

screen orientation

The accelerometer data will by default only be read once after startup to avoid too much file I/O, however if the program receives the SIGUSR1 signal, the accelerometer data will be reread. I took this idea from using polybar, which also reloads in this way. I use thinkpad-l380-yoga-scripts to have my screen rotate, and just added a system call within that script to send the SIGUSR1 signal to gester.

plans for the future

I don't plan to add more gestures in the future,since I've noticed that everything I wanted is there, but I am open to suggestions.

gester's People

Contributors

abondis avatar witty91 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.