mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 19:26:00 +01:00
code styling
This commit is contained in:
parent
2402f2e364
commit
bca93f4d3c
1 changed files with 18 additions and 20 deletions
|
@ -195,29 +195,27 @@ int main(int argc, char** argv) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ourRequest = argv[1];
|
std::string fullRequest = argv[1];
|
||||||
|
|
||||||
if (!ourRequest.contains("/")) {
|
if (!fullRequest.contains("/")) {
|
||||||
ourRequest = "/" + ourRequest;
|
fullRequest = "/" + fullRequest;
|
||||||
}
|
}
|
||||||
|
|
||||||
ourRequest.contains("/");
|
if (fullRequest.contains("/monitors")) request(fullRequest);
|
||||||
|
else if (fullRequest.contains("/clients")) request(fullRequest);
|
||||||
if (ourRequest.contains("/monitors")) request(ourRequest);
|
else if (fullRequest.contains("/workspaces")) request(fullRequest);
|
||||||
else if (ourRequest.contains("/clients")) request(ourRequest);
|
else if (fullRequest.contains("/activewindow")) request(fullRequest);
|
||||||
else if (ourRequest.contains("/workspaces")) request(ourRequest);
|
else if (fullRequest.contains("/layers")) request(fullRequest);
|
||||||
else if (ourRequest.contains("/activewindow")) request(ourRequest);
|
else if (fullRequest.contains("/version")) request(fullRequest);
|
||||||
else if (ourRequest.contains("/layers")) request(ourRequest);
|
else if (fullRequest.contains("/kill")) request(fullRequest);
|
||||||
else if (ourRequest.contains("/version")) request(ourRequest);
|
else if (fullRequest.contains("/splash")) request(fullRequest);
|
||||||
else if (ourRequest.contains("/kill")) request(ourRequest);
|
else if (fullRequest.contains("/devices")) request(fullRequest);
|
||||||
else if (ourRequest.contains("/splash")) request(ourRequest);
|
else if (fullRequest.contains("/reload")) request(fullRequest);
|
||||||
else if (ourRequest.contains("/devices")) request(ourRequest);
|
else if (fullRequest.contains("/dispatch")) dispatchRequest(argc, argv);
|
||||||
else if (ourRequest.contains("/reload")) request(ourRequest);
|
else if (fullRequest.contains("/keyword")) keywordRequest(argc, argv);
|
||||||
else if (ourRequest.contains("/dispatch")) dispatchRequest(argc, argv);
|
else if (fullRequest.contains("/hyprpaper")) hyprpaperRequest(argc, argv);
|
||||||
else if (ourRequest.contains("/keyword")) keywordRequest(argc, argv);
|
else if (fullRequest.contains("/--batch")) batchRequest(argc, argv);
|
||||||
else if (ourRequest.contains("/hyprpaper")) hyprpaperRequest(argc, argv);
|
else if (fullRequest.contains("/--help")) printf("%s", USAGE.c_str());
|
||||||
else if (ourRequest.contains("/--batch")) batchRequest(argc, argv);
|
|
||||||
else if (ourRequest.contains("/--help")) printf("%s", USAGE.c_str());
|
|
||||||
else {
|
else {
|
||||||
printf("%s\n", USAGE.c_str());
|
printf("%s\n", USAGE.c_str());
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in a new issue