update instructions

pull/14/head
sezanzeb 4 years ago
parent 26a4e3d76d
commit 352de4d74a

@ -8,8 +8,25 @@ Tool to change the mapping of your input device buttons.
# Running
First, install the package:
```
git clone https://github.com/sezanzeb/key-mapper.git
cd key-mapper
sudo python3 setup.py install
```
To keep injecting the mapping after closing the window, the daemon needs to
be running:
```bash
sudo key-mapper-service -d
```
To open the UI to modify the mappings, use:
```bash
sudo python3 setup.py install && sudo key-mapper-gtk -d
sudo key-mapper-gtk -d
```
You can also start it via your applications menu.

@ -49,8 +49,8 @@ def get_dbus_interface():
"""Get an interface to start and stop injecting keystrokes."""
if not is_service_running():
logger.warning(
'The daemon is not running, mapping keys only works as '
'long as the window is open.'
'The daemon "key-mapper-service" is not running, mapping keys '
'only works as long as the window is open.'
)
return Daemon(autoload=False)

Loading…
Cancel
Save