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

@@ -51,3 +51,10 @@ bool CLayoutManager::removeLayout(IHyprLayout* layout) {
return true;
}
std::vector<std::string> CLayoutManager::getAllLayoutNames() {
std::vector<std::string> results(m_vLayouts.size());
for (size_t i = 0; i < m_vLayouts.size(); ++i)
results[i] = m_vLayouts[i].first;
return results;
}