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:
parent
572fd554b8
commit
4729265284
4 changed files with 43 additions and 10 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue