From 6f838560252045be5bac2e7492ff8d1e250cf937 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 24 Feb 2024 14:01:58 +0000 Subject: hyprctl: add -r argument --- hyprctl/main.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'hyprctl/main.cpp') 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") { -- cgit v1.2.3