aboutsummaryrefslogtreecommitdiffhomepage
path: root/hyprctl
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-05-08 15:28:45 +0200
committervaxerski <[email protected]>2022-05-08 15:28:45 +0200
commit39dcfa61c3530c2049b9e88afff6b31f5b2bb7fd (patch)
tree6b495bdc0c800e85d81d9115731563ed85a60cfb /hyprctl
parentaa5b0d2cda4aa3a06bb80b69dbcbb18ffddb8c8f (diff)
downloadHyprland-39dcfa61c3530c2049b9e88afff6b31f5b2bb7fd.tar.gz
Hyprland-39dcfa61c3530c2049b9e88afff6b31f5b2bb7fd.zip
Added hyprctl reload
Diffstat (limited to 'hyprctl')
-rw-r--r--hyprctl/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp
index 4529fd31..9cca9792 100644
--- a/hyprctl/main.cpp
+++ b/hyprctl/main.cpp
@@ -25,6 +25,7 @@ usage: hyprctl [command] [(opt)args]
dispatch
keyword
version
+ reload
)#";
void request(std::string arg) {
@@ -142,6 +143,7 @@ int main(int argc, char** argv) {
else if (!strcmp(argv[1], "activewindow")) request("activewindow");
else if (!strcmp(argv[1], "layers")) request("layers");
else if (!strcmp(argv[1], "version")) request("version");
+ else if (!strcmp(argv[1], "reload")) request("reload");
else if (!strcmp(argv[1], "dispatch")) dispatchRequest(argc, argv);
else if (!strcmp(argv[1], "keyword")) keywordRequest(argc, argv);
else if (!strcmp(argv[1], "--batch")) batchRequest(argc, argv);