aboutsummaryrefslogtreecommitdiffhomepage
path: root/hyprctl/main.cpp
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-02-24 14:01:58 +0000
committerVaxry <[email protected]>2024-02-24 14:02:03 +0000
commit6f838560252045be5bac2e7492ff8d1e250cf937 (patch)
tree19e8374b6b63f6c14ff47c785ae1c3d8326f1024 /hyprctl/main.cpp
parentd92da7959a1d271c585d0a7de4c75a389bd1ac05 (diff)
downloadHyprland-6f838560252045be5bac2e7492ff8d1e250cf937.tar.gz
Hyprland-6f838560252045be5bac2e7492ff8d1e250cf937.zip
hyprctl: add -r argument
Diffstat (limited to 'hyprctl/main.cpp')
-rw-r--r--hyprctl/main.cpp3
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") {