diff options
author | vaxerski <[email protected]> | 2022-04-29 19:44:09 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-04-29 19:44:09 +0200 |
commit | 31a429899b3132a704211eb5bffb5cde3ec3c9fc (patch) | |
tree | 0c51e6ea7503581ddd788185ad53b96f36b1e9b0 /hyprctl | |
parent | 726ba657850ef1680c82d3815c91421d9c588844 (diff) | |
download | Hyprland-31a429899b3132a704211eb5bffb5cde3ec3c9fc.tar.gz Hyprland-31a429899b3132a704211eb5bffb5cde3ec3c9fc.zip |
added hyprctl batch
Diffstat (limited to 'hyprctl')
-rw-r--r-- | hyprctl/main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp index 6d0b2fc9..6a9a9bda 100644 --- a/hyprctl/main.cpp +++ b/hyprctl/main.cpp @@ -122,6 +122,12 @@ void keywordRequest(int argc, char** argv) { request(rq); } +void batchRequest(int argc, char** argv) { + std::string rq = "[[BATCH]]" + std::string(argv[2]); + + request(rq); +} + int main(int argc, char** argv) { int bflag = 0, sflag = 0, index, c; @@ -138,6 +144,7 @@ int main(int argc, char** argv) { else if (!strcmp(argv[1], "version")) request("version"); 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); else { printf(USAGE.c_str()); return 1; |