From 352de4d74a8f0be25d51a2cfa54ec856dc432a05 Mon Sep 17 00:00:00 2001 From: sezanzeb Date: Sun, 22 Nov 2020 22:07:54 +0100 Subject: [PATCH] update instructions --- README.md | 19 ++++++++++++++++++- keymapper/daemon.py | 4 ++-- 2 files changed, 20 insertions(+), 3 deletions(-) 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)