aboutsummaryrefslogtreecommitdiffhomepage
path: root/hyprctl/main.cpp
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-01-06 14:32:25 +0100
committervaxerski <[email protected]>2023-01-06 14:32:25 +0100
commit98ce867104b855824ee218296f91664e1fd60545 (patch)
tree5a7e4a11127f28e09ceb3ec6e783b29cf92b27f7 /hyprctl/main.cpp
parent461fab0f27e4913993c6321625b343537aba1bdf (diff)
downloadHyprland-98ce867104b855824ee218296f91664e1fd60545.tar.gz
Hyprland-98ce867104b855824ee218296f91664e1fd60545.zip
added hyprctl binds
Diffstat (limited to 'hyprctl/main.cpp')
-rw-r--r--hyprctl/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp
index 469baddc..acb7b1b1 100644
--- a/hyprctl/main.cpp
+++ b/hyprctl/main.cpp
@@ -27,6 +27,7 @@ commands:
activewindow
layers
devices
+ binds
dispatch
keyword
version
@@ -44,7 +45,7 @@ flags:
--batch -> execute a batch of commands, separated by ';'
)#";
-void request(std::string arg, int minArgs = 0) {
+void request(std::string arg, int minArgs = 0) {
const auto SERVERSOCKET = socket(AF_UNIX, SOCK_STREAM, 0);
const auto ARGS = std::count(arg.begin(), arg.end(), ' ');
@@ -334,6 +335,8 @@ int main(int argc, char** argv) {
request(fullRequest);
else if (fullRequest.contains("/getoption"))
request(fullRequest);
+ else if (fullRequest.contains("/binds"))
+ request(fullRequest);
else if (fullRequest.contains("/cursorpos"))
request(fullRequest);
else if (fullRequest.contains("/switchxkblayout"))