diff --git a/README.md b/README.md index f9b34f3e..2354a8cd 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/keymapper/daemon.py b/keymapper/daemon.py index 25c5f6ec..82f47fed 100644 --- a/keymapper/daemon.py +++ b/keymapper/daemon.py @@ -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)