diff options
Diffstat (limited to 'hyprctl/main.cpp')
| -rw-r--r-- | hyprctl/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp index 6126c514..9d3c98d1 100644 --- a/hyprctl/main.cpp +++ b/hyprctl/main.cpp @@ -58,6 +58,7 @@ commands: flags: -j -> output in JSON + -r -> refresh state after issuing command (e.g. for updating variables) --batch -> execute a batch of commands, separated by ';' --instance (-i) -> use a specific instance. Can be either signature or index in hyprctl instances (0, 1, etc) )#"; @@ -305,6 +306,8 @@ int main(int argc, char** argv) { if (ARGS[i] == "-j" && !fullArgs.contains("j")) { fullArgs += "j"; json = true; + } else if (ARGS[i] == "-r" && !fullArgs.contains("r")) { + fullArgs += "r"; } else if (ARGS[i] == "--batch") { fullRequest = "--batch "; } else if (ARGS[i] == "--instance" || ARGS[i] == "-i") { |
