added hyprctl kill
This commit is contained in:
parent
b9a5fc0d2f
commit
781526dac5
9 changed files with 154 additions and 38 deletions
|
|
@ -26,6 +26,7 @@ const std::string USAGE = R"#(usage: hyprctl [command] [(opt)args]
|
|||
dispatch
|
||||
keyword
|
||||
version
|
||||
kill
|
||||
reload)#";
|
||||
|
||||
void request(std::string arg) {
|
||||
|
|
@ -129,6 +130,7 @@ int main(int argc, char** argv) {
|
|||
else if (!strcmp(argv[1], "activewindow")) request("activewindow");
|
||||
else if (!strcmp(argv[1], "layers")) request("layers");
|
||||
else if (!strcmp(argv[1], "version")) request("version");
|
||||
else if (!strcmp(argv[1], "kill")) request("kill");
|
||||
else if (!strcmp(argv[1], "devices")) request("devices");
|
||||
else if (!strcmp(argv[1], "reload")) request("reload");
|
||||
else if (!strcmp(argv[1], "dispatch")) dispatchRequest(argc, argv);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue