Added hyprctl version
This commit is contained in:
parent
94811485c9
commit
e3b19e0131
4 changed files with 48 additions and 1 deletions
|
|
@ -24,6 +24,7 @@ usage: hyprctl [command] [(opt)args]
|
|||
layers
|
||||
dispatch
|
||||
keyword
|
||||
version
|
||||
)#";
|
||||
|
||||
void request(std::string arg) {
|
||||
|
|
@ -134,6 +135,7 @@ int main(int argc, char** argv) {
|
|||
else if (!strcmp(argv[1], "workspaces")) request("workspaces");
|
||||
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], "dispatch")) dispatchRequest(argc, argv);
|
||||
else if (!strcmp(argv[1], "keyword")) keywordRequest(argc, argv);
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue