Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rafostar/ir-gen
Generate ir-keytable config for unsupported IR remotes.
https://github.com/rafostar/ir-gen
ir-ctl ir-keytable ir-remote irda
Last synced: 22 days ago
JSON representation
Generate ir-keytable config for unsupported IR remotes.
- Host: GitHub
- URL: https://github.com/rafostar/ir-gen
- Owner: Rafostar
- License: mit
- Created: 2020-06-30T16:09:59.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-01T13:57:35.000Z (over 4 years ago)
- Last Synced: 2024-10-25T09:16:33.857Z (2 months ago)
- Topics: ir-ctl, ir-keytable, ir-remote, irda
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ir-gen
Generate ir-keytable config for unsupported IR remotes.Requires `ir-ctl` to be installed (part of `v4l-utils`).
## Usage
Mark this script as executable and run as root from terminal:
```
./ir-gen
```
Hold your remote within 5 cm (2 inches) from IR receiver and press any key. The command should output an `ir-keytable` config (rc_keymap) in ".toml" format. Either copy and save output into file or run below command to save output into file directly (replace "example" with any name you want):
```
./ir-gen > /etc/rc_keymaps/example.toml
```### Test
After keymap file is generated run below command to test if you get output from your remote:
```
ir-keytable -c -w example.toml -t
```
All that is left is to assign keyboard key names to different scancodes you get when pressing buttons during the test. To do this edit your "example.toml" file in any text editor. All linux key names can be found [here](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/input-event-codes.h#n64).To have the generated config auto loaded at boot, add below line to `/etc/rc_maps.cfg` file:
```
* * example.toml
```## Donation
If you like my work please support it by buying me a cup of coffee :-)[![PayPal](https://github.com/Rafostar/gnome-shell-extension-cast-to-tv/wiki/images/paypal.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=TFVDFD88KQ322)