From 472926528428cd714c90f157e639fc0466611c8b Mon Sep 17 00:00:00 2001 From: zakk4223 Date: Tue, 21 Nov 2023 13:43:38 -0500 Subject: hyprctl: Add 'layouts' command (#3895) * Add hyprctl 'layouts' command formatting * Add getAllLayoutNames(), move m_vLayouts back to private Formatting * clang-format --- hyprctl/main.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'hyprctl/main.cpp') 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 { -- cgit v1.2.3