aboutsummaryrefslogtreecommitdiffhomepage
path: root/hyprctl
diff options
context:
space:
mode:
authorVaxry <[email protected]>2023-04-09 13:48:20 +0100
committerGitHub <[email protected]>2023-04-09 13:48:20 +0100
commit046ad79d11dbccc90ade48d63aaa340655d999fb (patch)
tree7ffb5ae0d0abd09cba72e42be5a27585531090e4 /hyprctl
parente4e653ada6fc729efad3f6a0d49cf72b94c43b6c (diff)
downloadHyprland-046ad79d11dbccc90ade48d63aaa340655d999fb.tar.gz
Hyprland-046ad79d11dbccc90ade48d63aaa340655d999fb.zip
GlobalShortcuts protocol impl (#1886)
Implements the `hyprland-global-shortcuts-v1` protocol --------- Co-authored-by: Mihai Fufezan <[email protected]>
Diffstat (limited to 'hyprctl')
-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"))