update instructions

This commit is contained in:
sezanzeb 2020-11-22 22:07:54 +01:00
parent 26a4e3d76d
commit 352de4d74a
2 changed files with 20 additions and 3 deletions

View File

@ -8,8 +8,25 @@ Tool to change the mapping of your input device buttons.
# Running # 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 ```bash
sudo python3 setup.py install && sudo key-mapper-gtk -d sudo key-mapper-service -d
```
To open the UI to modify the mappings, use:
```bash
sudo key-mapper-gtk -d
``` ```
You can also start it via your applications menu. You can also start it via your applications menu.

View File

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