{"id":16940896,"url":"https://github.com/iberianpig/fusuma-plugin-keypress","last_synced_at":"2025-04-05T05:06:41.456Z","repository":{"id":36069020,"uuid":"216858545","full_name":"iberianpig/fusuma-plugin-keypress","owner":"iberianpig","description":"Keypress combination plugin for Fusuma","archived":false,"fork":false,"pushed_at":"2025-01-14T02:42:50.000Z","size":80,"stargazers_count":28,"open_issues_count":1,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-29T04:08:10.135Z","etag":null,"topics":["fusuma","fusuma-plugin","keyboard","keypress","linux"],"latest_commit_sha":null,"homepage":"https://github.com/iberianpig/fusuma#available-plugins","language":"Ruby","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/iberianpig.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2019-10-22T16:22:11.000Z","updated_at":"2025-01-14T02:42:54.000Z","dependencies_parsed_at":"2023-11-07T04:39:18.279Z","dependency_job_id":"5eba2358-c4df-4e4a-b35e-f44383515536","html_url":"https://github.com/iberianpig/fusuma-plugin-keypress","commit_stats":{"total_commits":58,"total_committers":1,"mean_commits":58.0,"dds":0.0,"last_synced_commit":"9853256ef55c971491cc88b494bef8413e9dd16b"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iberianpig%2Ffusuma-plugin-keypress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iberianpig%2Ffusuma-plugin-keypress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iberianpig%2Ffusuma-plugin-keypress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iberianpig%2Ffusuma-plugin-keypress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iberianpig","download_url":"https://codeload.github.com/iberianpig/fusuma-plugin-keypress/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289428,"owners_count":20914464,"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":["fusuma","fusuma-plugin","keyboard","keypress","linux"],"created_at":"2024-10-13T21:08:11.621Z","updated_at":"2025-04-05T05:06:41.435Z","avatar_url":"https://github.com/iberianpig.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fusuma::Plugin::Keypress [![Gem Version](https://badge.fury.io/rb/fusuma-plugin-keypress.svg)](https://badge.fury.io/rb/fusuma-plugin-keypress) [![Build Status](https://github.com/iberianpig/fusuma-plugin-keypress/actions/workflows/main.yml/badge.svg)](https://github.com/iberianpig/fusuma-plugin-keypress/actions/workflows/main.yml)\n\n\nKeyboard + Touchpad combination plugin for [Fusuma](https://github.com/iberianpig/fusuma)\n\n* Customize gestures with modifier keys\n* Supports multiple modifier key combinations\n\nNOTE: **Note: This plugin reads key input from keyboard to identify pressed key and assign it to an action.**\n\n## Installation\n\nRun the following code in your terminal.\n\n### Install fusuma-plugin-keypress\n\nThis plugin requires [Fusuma](https://github.com/iberianpig/fusuma#update) version 1.4 or later.\n\n```sh\n$ sudo gem install fusuma-plugin-keypress\n```\n\n## Properties\n\n### Keypress\nAdd `keypress:` property in `~/.config/fusuma/config.yml`.\n\nKeys following are available for `keypress`.\n\n* `CAPSLOCK`\n* `LEFTALT`\n* `LEFTCTRL`\n* `LEFTMETA`\n* `LEFTSHIFT`\n* `RIGHTALT`\n* `RIGHTCTRL`\n* `RIGHTSHIFT`\n* `RIGHTMETA`\n\n## Example\n\nSet `keypress:` property and values under gesture in `~/.config/fusuma/config.yml`.\n\n```yaml\nswipe:\n  4:\n    up:\n      command: 'xdotool key super+s'\n      keypress:\n        LEFTMETA:\n          command: 'xdotool key --clearmodifiers XF86MonBrightnessUp'\n        LEFTMETA+LEFTALT:\n          command: 'xdotool key --clearmodifiers XF86AudioRaiseVolume'\n\n    down:\n      command: 'xdotool key super+a'\n      keypress:\n        LEFTMETA:\n          command: 'xdotool key --clearmodifiers XF86MonBrightnessDown'\n        LEFTMETA+LEFTALT:\n          command: 'xdotool key --clearmodifiers XF86AudioLowerVolume'\n```\n\n* Swipe up/down with four fingers while keypress LEFTMETA key to change display brightness.\n* Swipe up/down with four fingers while keypress LEFTMETA and LEFTALT keys to change audio volume.\n  - If you want to combine a gesture with two keys, combine modifier keys with `+`\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/iberianpig/fusuma-plugin-keypress. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Fusuma::Plugin::Keypress project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/iberianpig/fusuma-plugin-keypress/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiberianpig%2Ffusuma-plugin-keypress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiberianpig%2Ffusuma-plugin-keypress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiberianpig%2Ffusuma-plugin-keypress/lists"}