Add note on passing arguments to exec. (#50)

This commit is contained in:
Philip Jones 2022-11-10 15:36:41 +00:00 committed by GitHub
parent 4357f11afc
commit 785202fe30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -29,11 +29,17 @@ issue a `dispatch` to call a keybind dispatcher with an arg.
An arg has to be present, for dispatchers without parameters it can be anything. An arg has to be present, for dispatchers without parameters it can be anything.
To pass an argument starting with `-` or `--`, such as command line options to
`exec` programs, pass `--` as an option. This will disable any subsequent
parsing of options by _hyprctl_.
Examples: Examples:
```sh ```sh
hyprctl dispatch exec kitty hyprctl dispatch exec kitty
hyprctl dispatch -- exec kitty --single-instance
hyprctl dispatch pseudo x hyprctl dispatch pseudo x
``` ```