aboutsummaryrefslogtreecommitdiffstats
path: root/config/quickshell/qs-hyprview-trixie/layouts/LayoutsManager.qml
diff options
context:
space:
mode:
Diffstat (limited to 'config/quickshell/qs-hyprview-trixie/layouts/LayoutsManager.qml')
-rw-r--r--config/quickshell/qs-hyprview-trixie/layouts/LayoutsManager.qml47
1 files changed, 47 insertions, 0 deletions
diff --git a/config/quickshell/qs-hyprview-trixie/layouts/LayoutsManager.qml b/config/quickshell/qs-hyprview-trixie/layouts/LayoutsManager.qml
new file mode 100644
index 00000000..8db0672d
--- /dev/null
+++ b/config/quickshell/qs-hyprview-trixie/layouts/LayoutsManager.qml
@@ -0,0 +1,47 @@
+pragma Singleton
+import Quickshell
+import "."
+
+Singleton {
+ id: root
+
+ function doLayout( layoutAlgorithm, windowList, width, height) {
+ var doLayout = null
+ switch (layoutAlgorithm) {
+ case 'smartgrid':
+ doLayout = SmartGridLayout.doLayout
+ break
+ case 'justified':
+ doLayout = JustifiedLayout.doLayout
+ break
+ case 'bands':
+ doLayout = BandsLayout.doLayout
+ break
+ case 'masonry':
+ doLayout = MasonryLayout.doLayout
+ break
+ case 'hero':
+ doLayout = HeroLayout.doLayout
+ break
+ case 'spiral':
+ doLayout = SpiralLayout.doLayout
+ break
+ case 'satellite':
+ doLayout = SatelliteLayout.doLayout
+ break
+ case 'staggered':
+ doLayout = StarggeredLayout.doLayout
+ break
+ case 'columnar':
+ doLayout = ColumnarLayout.doLayout
+ break
+ case 'vortex':
+ doLayout = VortexLayout.doLayout
+ break
+ default:
+ doLayout = SmartGridLayout.doLayout
+ }
+
+ return doLayout( windowList, width, height)
+ }
+}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage