aboutsummaryrefslogtreecommitdiffhomepage
path: root/hyprctl
diff options
context:
space:
mode:
authorVaxry <[email protected]>2023-12-08 15:40:01 +0000
committerVaxry <[email protected]>2023-12-08 15:40:01 +0000
commit288f1863f0b6886e0cdf85d16bb2460bb042acf2 (patch)
tree622e4e215cd05fe93d2d0e2098f0d63a3f89f763 /hyprctl
parent6fb1b89b982eea26ecae75b93f1742537c4f31ae (diff)
downloadHyprland-288f1863f0b6886e0cdf85d16bb2460bb042acf2.tar.gz
Hyprland-288f1863f0b6886e0cdf85d16bb2460bb042acf2.zip
hyprctl: allow instances without HIS
Diffstat (limited to 'hyprctl')
-rw-r--r--hyprctl/main.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp
index a53c4c3f..2f0e08ed 100644
--- a/hyprctl/main.cpp
+++ b/hyprctl/main.cpp
@@ -330,6 +330,12 @@ int main(int argc, char** argv) {
fullRequest = fullArgs + "/" + fullRequest;
+ // instances is HIS-independent
+ if (fullRequest.contains("/instances")) {
+ instancesRequest(json);
+ return 0;
+ }
+
if (overrideInstance.contains("_"))
instanceSignature = overrideInstance;
else if (!overrideInstance.empty()) {
@@ -399,8 +405,6 @@ int main(int argc, char** argv) {
request(fullRequest);
else if (fullRequest.contains("/rollinglog"))
request(fullRequest);
- else if (fullRequest.contains("/instances"))
- instancesRequest(json);
else if (fullRequest.contains("/switchxkblayout"))
request(fullRequest, 2);
else if (fullRequest.contains("/seterror"))