diff options
author | zakk4223 <[email protected]> | 2023-11-21 13:43:38 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2023-11-21 18:43:38 +0000 |
commit | 472926528428cd714c90f157e639fc0466611c8b (patch) | |
tree | accba2f9d174c151cc102e9a8e30c991fb250461 /hyprctl/main.cpp | |
parent | 572fd554b8e86b3b3533f05631348c3374815ab5 (diff) | |
download | Hyprland-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/main.cpp')
-rw-r--r-- | hyprctl/main.cpp | 3 |
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 { |