Skip to content

Commit

Permalink
document quit command
Browse files Browse the repository at this point in the history
  • Loading branch information
sezanzeb committed Dec 7, 2024
1 parent 1565e92 commit 277e7ad
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions inputremapper/bin/input_remapper_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ def parse_args() -> Options:
action="store",
dest="command",
help=(
"Communicate with the daemon. Available commands are start, "
"stop, autoload, hello or stop-all"
"Communicate with the daemon. Available commands are "
f"{', '.join([command.value for command in Commands])}"
),
default=None,
metavar="NAME",
Expand Down
17 changes: 9 additions & 8 deletions readme/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,14 +313,15 @@ running (or without sudo if your user has the appropriate permissions).

Examples:

| Description | Command |
|----------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------|
| Load all configured presets for all devices | `input-remapper-control --command autoload` |
| If you are running as root user, provide information about the whereabouts of the input-remapper config | `input-remapper-control --command autoload --config-dir "~/.config/input-remapper/"` |
| List available device names for the `--device` parameter | `sudo input-remapper-control --list-devices` |
| Stop injecting | `input-remapper-control --command stop --device "Razer Razer Naga Trinity"` |
| Load `~/.config/input-remapper/presets/Razer Razer Naga Trinity/a.json` | `input-remapper-control --command start --device "Razer Razer Naga Trinity" --preset "a"` |
| Loads the configured preset for whatever device is using this /dev path | `/bin/input-remapper-control --command autoload --device /dev/input/event5` |
| Description | Command |
|---------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------|
| Load all configured presets for all devices | `input-remapper-control --command autoload` |
| If you are running as root user, provide information about the whereabouts of the input-remapper config | `input-remapper-control --command autoload --config-dir "~/.config/input-remapper/"` |
| List available device names for the `--device` parameter | `sudo input-remapper-control --list-devices` |
| Stop injecting | `input-remapper-control --command stop --device "Razer Razer Naga Trinity"` |
| Load `~/.config/input-remapper/presets/Razer Razer Naga Trinity/a.json` | `input-remapper-control --command start --device "Razer Razer Naga Trinity" --preset "a"` |
| Loads the configured preset for whatever device is using this /dev path | `/bin/input-remapper-control --command autoload --device /dev/input/event5` |
| Make the input-remapper-service process exit | `/bin/input-remapper-control --command quit` |

**systemctl**

Expand Down

0 comments on commit 277e7ad

Please sign in to comment.