aboutsummaryrefslogtreecommitdiffhomepage
path: root/hyprctl
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-07-12 23:21:00 +0200
committervaxerski <[email protected]>2022-07-12 23:21:00 +0200
commit4bea3467e03eae7c3db251b84605345c576c4313 (patch)
tree2e59d673ada938c463ff67bc1a47bebb11165902 /hyprctl
parentbca93f4d3cd29c88ff32af96dcc1338196feabdb (diff)
downloadHyprland-4bea3467e03eae7c3db251b84605345c576c4313.tar.gz
Hyprland-4bea3467e03eae7c3db251b84605345c576c4313.zip
update hyprctl help
Diffstat (limited to 'hyprctl')
-rw-r--r--hyprctl/main.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp
index 4c7e3a04..b2c00ce7 100644
--- a/hyprctl/main.cpp
+++ b/hyprctl/main.cpp
@@ -15,8 +15,9 @@
#include <fstream>
#include <string>
-const std::string USAGE = R"#(usage: hyprctl [command] [(opt)args]
+const std::string USAGE = R"#(usage: hyprctl [(opt)flag] [command] [(opt)args]
+commands:
monitors
workspaces
clients
@@ -29,7 +30,11 @@ const std::string USAGE = R"#(usage: hyprctl [command] [(opt)args]
kill
splash
hyprpaper
- reload)#";
+ reload
+
+flags:
+ -j -> output in JSON
+)#";
void request(std::string arg) {
const auto SERVERSOCKET = socket(AF_UNIX, SOCK_STREAM, 0);