summaryrefslogtreecommitdiff
path: root/hyprctl/main.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2023-04-09 13:48:20 +0100
committerGitHub <noreply@github.com>2023-04-09 13:48:20 +0100
commit046ad79d11dbccc90ade48d63aaa340655d999fb (patch)
tree7ffb5ae0d0abd09cba72e42be5a27585531090e4 /hyprctl/main.cpp
parente4e653ada6fc729efad3f6a0d49cf72b94c43b6c (diff)
GlobalShortcuts protocol impl (#1886)
Implements the `hyprland-global-shortcuts-v1` protocol --------- Co-authored-by: Mihai Fufezan <fufexan@protonmail.com>
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 14753e71..7c939a4c 100644
--- a/hyprctl/main.cpp
+++ b/hyprctl/main.cpp
@@ -43,6 +43,7 @@ commands:
setprop
plugin
notify
+ globalshortcuts
flags:
-j -> output in JSON
@@ -345,6 +346,8 @@ int main(int argc, char** argv) {
request(fullRequest);
else if (fullRequest.contains("/animations"))
request(fullRequest);
+ else if (fullRequest.contains("/globalshortcuts"))
+ request(fullRequest);
else if (fullRequest.contains("/switchxkblayout"))
request(fullRequest, 2);
else if (fullRequest.contains("/seterror"))