Merge branch 'main' of github.com:sezanzeb/key-mapper into main

pull/14/head
sezanzeb 4 years ago
commit f31722e03a

@ -1,25 +1,23 @@
# Key Mapper
<h1 align="center">Key Mapper</h1>
![pylint](data/pylint.svg) ![coverage](data/coverage.svg)
<p align="center">A Linux tool to change the mapping of your input device buttons.</p>
Tool to change the mapping of your input device buttons.
<p align="center"><img src="data/pylint.svg"/> <img src="data/coverage.svg"/></p>
<p align="center">
<img src="data/screenshot.png"/>
<img src="data/screenshot.png"/>
</p>
# Running
## Usage
Installation:
To open the UI to modify the mappings, use:
```bash
git clone https://github.com/sezanzeb/key-mapper.git
cd key-mapper
sudo python3 setup.py install
usermod -a -G input $USER
usermod -a -G plugdev $USER
key-mapper-gtk
```
You can also start it via your applications menu.
To keep injecting the mapping after closing the window, the daemon needs to
be running. If it doesn't already after logging in, you can use:
@ -27,30 +25,31 @@ be running. If it doesn't already after logging in, you can use:
key-mapper-service
```
To open the UI to modify the mappings, use:
## Git Installation
```bash
key-mapper-gtk
git clone https://github.com/sezanzeb/key-mapper.git
cd key-mapper
sudo python3 setup.py install
usermod -a -G input $USER
usermod -a -G plugdev $USER
```
You can also start it via your applications menu.
# Dependencies
Depending on how those packages are called in your distro:
Depending on how those packages are called in your distro,
you need the following dependencies:
`python3-distutils-extra` `python3-evdev` `python3-dbus`
It works with both Wayland and X11.
# Tests
## Tests
```bash
pylint keymapper --extension-pkg-whitelist=evdev
sudo python3 setup.py install && python3 tests/test.py
```
# Roadmap
## Roadmap
- [x] show a dropdown to select valid devices
- [x] creating presets per device

Loading…
Cancel
Save