aboutsummaryrefslogtreecommitdiffhomepage
path: root/hyprctl
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-08-11 21:16:38 +0200
committervaxerski <[email protected]>2022-08-11 21:16:38 +0200
commit91024716103128ec74cf9a1da97889c74a676a3e (patch)
treec04c80b5eb4bc19bfbad10021eb450129062d6bf /hyprctl
parentf85c7656342d2b9d515e364de5dff4662ec6865d (diff)
downloadHyprland-91024716103128ec74cf9a1da97889c74a676a3e.tar.gz
Hyprland-91024716103128ec74cf9a1da97889c74a676a3e.zip
added hyprctl getoption
Diffstat (limited to 'hyprctl')
-rw-r--r--hyprctl/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp
index a282b5d0..db8f48a3 100644
--- a/hyprctl/main.cpp
+++ b/hyprctl/main.cpp
@@ -35,6 +35,7 @@ commands:
hyprpaper
reload
setcursor
+ getoption
flags:
-j -> output in JSON
@@ -264,6 +265,7 @@ int main(int argc, char** argv) {
else if (fullRequest.contains("/splash")) request(fullRequest);
else if (fullRequest.contains("/devices")) request(fullRequest);
else if (fullRequest.contains("/reload")) request(fullRequest);
+ else if (fullRequest.contains("/getoption")) request(fullRequest);
else if (fullRequest.contains("/setcursor")) setcursorRequest(argc, argv);
else if (fullRequest.contains("/dispatch")) dispatchRequest(argc, argv);
else if (fullRequest.contains("/keyword")) keywordRequest(argc, argv);