The project is in a healthy, maintained state
This plugin empowers users to manipulate keyboard events and convert them into virtual input devices. It is designed to integrate seamlessly with other Fusuma plugins, thus enabling users to construct sophisticated input configurations and achieve distinctive functionalities. A key feature is the dynamic alteration of remapping layers within the Fusuma process, thereby enabling users to adapt their keyboard inputs to suit specific tasks or applications.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Fusuma::Plugin::Remap Gem Version Build Status

A Fusuma plugin for remapping keyboard events into virtual input devices. Compatible with other Fusuma plugins.

THIS PLUGIN IS EXPERIMENTAL.

This plugin empowers users to manipulate keyboard events and convert them into virtual input devices. It is designed to integrate seamlessly with other Fusuma plugins, thus enabling users to construct sophisticated input configurations and achieve distinctive functionalities. A key feature is the dynamic alteration of remapping layers within the Fusuma process, thereby enabling users to adapt their keyboard inputs to suit specific tasks or applications.

Installation

This plugin requires fusuma 2.0

Install dependencies

NOTE: If you have installed ruby by apt, you must install ruby-dev.

$ sudo apt-get install libevdev-dev ruby-dev build-essential

Set up udev rules

fusuma-plugin-remap create virtual input device(fusuma_virtual_keyboard) by uinput. So you need to set up udev rules.

$ echo 'KERNEL=="uinput", MODE="0660", GROUP="input", OPTIONS+="static_node=uinput"' | sudo tee /etc/udev/rules.d/60-udev-fusuma-remap.rules

Then, reload udev rules.

$ sudo udevadm control --reload-rules && sudo udevadm trigger

Install fusuma-plugin-remap

$ sudo gem install fusuma-plugin-remap

Properties

Remap

Currently, remapping is only possible in the thumbsense context. Please install fusuma-plugin-thumbsense

First, add the 'thumbsense' context to ~/.config/fusuma/config.yml. The context is separated by --- and specified by context: { thumbsense: true }.

Example

Set the following code in ~/.config/fusuma/config.yml.

---
context: 
  thumbsense: true

remap:
  J: BTN_LEFT
  K: BTN_RIGHT
  F: BTN_LEFT
  D: BTN_RIGHT
  SPACE: BTN_LEFT

Emergency stop keybind for virtual keyboard

This is a special keybind for emergency stop. If you press following keybind, physical keyboard will be ungrabbed and Fusuma process will be terminated.

RIGHTCTRLLEFTCTRL

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/iberianpig/fusuma-plugin-remap. 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::Remap project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.