input-remapper/README.md

43 lines
1.1 KiB
Markdown
Raw Normal View History

2020-10-31 13:02:59 +00:00
# Key Mapper
2020-10-26 22:45:22 +00:00
2020-10-31 23:53:41 +00:00
**Doesn't work yet**
2020-10-31 18:25:30 +00:00
GUI tool to map input buttons to e.g. change the macro keys of a mouse or any keyboard to something
2020-10-26 22:45:22 +00:00
different. It should not be device specific, any input device supported by Linux plug and play will likely
work.
2020-10-31 18:21:17 +00:00
<p align="center">
<img src="data/screenshot.png"/>
</p>
2020-11-01 20:32:06 +00:00
# Running
2020-11-02 19:55:17 +00:00
```bash
2020-11-01 20:32:06 +00:00
sudo python3 setup.py install && sudo key-mapper-gtk -d
```
2020-11-01 19:19:50 +00:00
# Dependencies
2020-11-02 18:47:31 +00:00
No idea which one are relevant at the moment
`evtest`, `libinput`, `python-evdev`
2020-11-01 20:32:06 +00:00
# Tests
sudo is required because some tests actually read /dev stuff.
2020-11-02 19:55:17 +00:00
```bash
2020-11-01 20:32:06 +00:00
sudo python3 setup.py install && sudo python3 tests/test.py
```
2020-11-01 19:19:50 +00:00
2020-10-31 18:22:50 +00:00
# Roadmap
2020-10-26 22:45:22 +00:00
2020-10-31 16:02:17 +00:00
- [x] show a dropdown to select an arbitrary device from `xinput list`
2020-10-31 19:19:46 +00:00
- [x] creating presets per device
- [ ] support X, but make it somewhat easy to add wayland to this tool.
- [ ] renaming presets
2020-10-31 18:22:50 +00:00
- [x] show a list that can be extended with a `[+]` button
- [ ] The list shows `[keycode, current key for that keycode -> target]`
- [ ] generate a file for /usr/share/X11/xkb/symbols/ for each preset, (symlink to home .config/?)
- [ ] load that file with `setxkbmap preset1234 -device 13` (on startup?, udev on mouse connect?)