mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-01 12:41:55 -07:00
Added hyprctl version
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user