summaryrefslogtreecommitdiff
path: root/hyprctl/main.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-03-20 16:00:54 +0000
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-03-20 16:00:54 +0000
commit22721a37d5f4b9fadbc34cfe58f364e36c2c6712 (patch)
tree8f6956a1545af674547f14eb8d91e6b83603586a /hyprctl/main.cpp
parentdd4270eadf8a62f4e8f417ff8a78f445745c6096 (diff)
hyprctl: add notify
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 a5bfda65..14753e71 100644
--- a/hyprctl/main.cpp
+++ b/hyprctl/main.cpp
@@ -42,6 +42,7 @@ commands:
seterror
setprop
plugin
+ notify
flags:
-j -> output in JSON
@@ -352,6 +353,8 @@ int main(int argc, char** argv) {
request(fullRequest, 3);
else if (fullRequest.contains("/plugin"))
request(fullRequest, 1);
+ else if (fullRequest.contains("/notify"))
+ request(fullRequest, 2);
else if (fullRequest.contains("/output"))
exitStatus = outputRequest(argc, argv);
else if (fullRequest.contains("/setcursor"))