From 785202fe303caf81d822252b7088b15114159d7d Mon Sep 17 00:00:00 2001 From: Philip Jones Date: Thu, 10 Nov 2022 15:36:41 +0000 Subject: [PATCH] Add note on passing arguments to exec. (#50) --- pages/Configuring/Using-hyprctl.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pages/Configuring/Using-hyprctl.md b/pages/Configuring/Using-hyprctl.md index 8477892..9dfcf31 100644 --- a/pages/Configuring/Using-hyprctl.md +++ b/pages/Configuring/Using-hyprctl.md @@ -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. +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: ```sh hyprctl dispatch exec kitty +hyprctl dispatch -- exec kitty --single-instance + hyprctl dispatch pseudo x ```