mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 22:45:58 +01:00
hyprctl: allow instances without HIS
This commit is contained in:
parent
6fb1b89b98
commit
288f1863f0
1 changed files with 6 additions and 2 deletions
|
@ -330,6 +330,12 @@ int main(int argc, char** argv) {
|
||||||
|
|
||||||
fullRequest = fullArgs + "/" + fullRequest;
|
fullRequest = fullArgs + "/" + fullRequest;
|
||||||
|
|
||||||
|
// instances is HIS-independent
|
||||||
|
if (fullRequest.contains("/instances")) {
|
||||||
|
instancesRequest(json);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (overrideInstance.contains("_"))
|
if (overrideInstance.contains("_"))
|
||||||
instanceSignature = overrideInstance;
|
instanceSignature = overrideInstance;
|
||||||
else if (!overrideInstance.empty()) {
|
else if (!overrideInstance.empty()) {
|
||||||
|
@ -399,8 +405,6 @@ int main(int argc, char** argv) {
|
||||||
request(fullRequest);
|
request(fullRequest);
|
||||||
else if (fullRequest.contains("/rollinglog"))
|
else if (fullRequest.contains("/rollinglog"))
|
||||||
request(fullRequest);
|
request(fullRequest);
|
||||||
else if (fullRequest.contains("/instances"))
|
|
||||||
instancesRequest(json);
|
|
||||||
else if (fullRequest.contains("/switchxkblayout"))
|
else if (fullRequest.contains("/switchxkblayout"))
|
||||||
request(fullRequest, 2);
|
request(fullRequest, 2);
|
||||||
else if (fullRequest.contains("/seterror"))
|
else if (fullRequest.contains("/seterror"))
|
||||||
|
|
Loading…
Reference in a new issue