aboutsummaryrefslogtreecommitdiffhomepage
path: root/hyprctl
diff options
context:
space:
mode:
authorzakk4223 <[email protected]>2023-11-21 13:43:38 -0500
committerGitHub <[email protected]>2023-11-21 18:43:38 +0000
commit472926528428cd714c90f157e639fc0466611c8b (patch)
treeaccba2f9d174c151cc102e9a8e30c991fb250461 /hyprctl
parent572fd554b8e86b3b3533f05631348c3374815ab5 (diff)
downloadHyprland-472926528428cd714c90f157e639fc0466611c8b.tar.gz
Hyprland-472926528428cd714c90f157e639fc0466611c8b.zip
hyprctl: Add 'layouts' command (#3895)
* Add hyprctl 'layouts' command formatting * Add getAllLayoutNames(), move m_vLayouts back to private Formatting * clang-format
Diffstat (limited to 'hyprctl')
-rw-r--r--hyprctl/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp
index deb8613c..74127d5b 100644
--- a/hyprctl/main.cpp
+++ b/hyprctl/main.cpp
@@ -52,6 +52,7 @@ commands:
notify
globalshortcuts
instances
+ layouts
flags:
-j -> output in JSON
@@ -420,6 +421,8 @@ int main(int argc, char** argv) {
request(fullRequest, 2);
else if (fullRequest.contains("/hyprpaper"))
requestHyprpaper(fullRequest);
+ else if (fullRequest.contains("/layouts"))
+ request(fullRequest);
else if (fullRequest.contains("/--help"))
printf("%s", USAGE.c_str());
else {