hyprctl: Add 'layouts' command (#3895)

* Add hyprctl 'layouts' command

formatting

* Add getAllLayoutNames(), move m_vLayouts back to private

Formatting

* clang-format
This commit is contained in:
zakk4223
2023-11-21 13:43:38 -05:00
committed by GitHub
parent 572fd554b8
commit 4729265284
4 changed files with 43 additions and 10 deletions

View File

@@ -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 {