{"id":15520823,"url":"https://github.com/proycon/lisgd","last_synced_at":"2025-04-05T04:26:00.683Z","repository":{"id":66967667,"uuid":"286252623","full_name":"proycon/lisgd","owner":"proycon","description":"Libinput synthetic gesture daemon: my fork of https://git.sr.ht/~mil/lisgd ","archived":false,"fork":false,"pushed_at":"2020-12-05T11:57:51.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T11:07:13.986Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/proycon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-09T14:25:23.000Z","updated_at":"2020-09-13T17:20:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"6bdc1f57-18f1-419a-8b19-96266109cc63","html_url":"https://github.com/proycon/lisgd","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proycon%2Flisgd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proycon%2Flisgd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proycon%2Flisgd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proycon%2Flisgd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/proycon","download_url":"https://codeload.github.com/proycon/lisgd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289128,"owners_count":20914456,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T10:29:31.508Z","updated_at":"2025-04-05T04:26:00.656Z","avatar_url":"https://github.com/proycon.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lisgd\n\nLisgd (libinput **synthetic** gesture daemon) lets you bind gestures based on\nlibinput touch events to run specific commands to execute. For example,\ndragging left to right with one finger could execute a particular command\nlike launching a terminal. Directional L-R, R-L, U-D, and D-U gestures and\ndiagnol LD-RU, RD-LU, UR-DL, UL-DR gestures are supported with 1 through\nn fingers.\n\nUnlike other libinput gesture daemons, lisgd uses touch events to\nrecognize **synthetic swipe gestures** rather than using the *libinput*'s\ngesture events. The advantage of this is that the synthetic gestures\nyou define via lisgd can be used on touchscreens, which normal libinput\ngestures don't support.\n\nThis program was built for use on the [Pinephone](https://www.pine64.org/pinephone/);\nhowever it could be used in general for any device that supports touch events,\nlike laptop touchscreens or similar. You may want to adjust the threshold\ndepending on the device you're using.\n\n## Configuration\nConfiguration can be done in two ways:\n\n1. Through a suckless style `config.h`; see the `config.def.h`\n2. Through commandline flags which override the default config.h values\n\n### Suckless-style config.h based configuration\nCopy the example `config.def.h` configuration to `config.h`.\n\n### Commandline flags based configuration\nFlags:\n\n- **-d [devicenodepath]**: Defines the dev filesystem device to monitor\n  - Example: `lisgd -d /dev/input/input1`\n- **-g [nfingers,gesture,edge,distance,command]**: Allows you to bind a gesture wherein nfingers is an integer, gesture is\none of {LR,RL,DU,UD,DLUR,URDL,ULDR,DLUR}, edge is one of * (any), N (none), L (left), R (right), T (top), B (bottom), TL (top left), TR (top right), BL (bottom left), BR (bottom right) and distance is one of * (any), S (short), M (medium), L (large). command is the shell command to be executed. The -g option can be used\n  multiple times to bind multiple gestures.\n  - Single Gesture Example: `lisgd -g \"1,LR,*,*,notify-send swiped lr\"`\n  - Multiple Gestures Example: `lisgd -g \"1,LR,*,*,notify-send swiped lr\" -g \"1,RL,R,*,noitfy-send swiped rl from right edge\"`\n- **-m [timeoutms]**: Number of milliseconds gestures must be performed within\n    to be registered. After the timeoutms value; the gesture won't be registered.\n  - Example: `lisgd -m 1200`\n- **-o [orientation]**: Number of 90-degree rotations to translate gestures by.\n  Can be set to 0-3. For example using 1; a L-R gesture would become a U-D\n  gesture. Meant to be used for screen-rotation.\n  - Example `lisgd -o 1`\n- **-r [degrees]**: Number of degrees offset each 45-degree interval may still\n  be recognized within. Maximum value is 45. Default value is 15. E.g. U-D\n  is a 180 degree gesture but with 15 degrees of leniency will be recognized\n  between 165-195 degrees.\n  - Example: `lisgd -r 20`\n- **-t [threshold_units]**: Threshold in libinput units (pixels) after which a\n  gesture registers. Defaults to 300.\n  - Example: `lisgd -t 400`\n- **-v**: Verbose mode, useful for debugging\n  - Example: `lisgd -v`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproycon%2Flisgd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fproycon%2Flisgd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproycon%2Flisgd/lists"}