From 98ce867104b855824ee218296f91664e1fd60545 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Fri, 6 Jan 2023 14:32:25 +0100 Subject: added hyprctl binds --- hyprctl/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'hyprctl/main.cpp') 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")) -- cgit v1.2.3