From 1ee78be8453f86ef366fe7a73e4e8cf245d2d336 Mon Sep 17 00:00:00 2001 From: Don Williams Date: Sat, 11 Jul 2026 04:31:59 -0400 Subject: Added qs-hyprview as alternative overview Signed-off-by: Don Williams On branch development Your branch is up to date with 'origin/development'. Changes to be committed: deleted: ./ new file: LICENSE new file: README.md new file: common/Appearance.qml new file: layouts/BandsLayout.qml new file: layouts/ColumnarLayout.qml new file: layouts/HeroLayout.qml new file: layouts/JustifiedLayout.qml new file: layouts/LayoutsManager.qml new file: layouts/MasonryLayout.qml new file: layouts/SatelliteLayout.qml new file: layouts/SmartGridLayout.qml new file: layouts/SpiralLayout.qml new file: layouts/StarggeredLayout.qml new file: layouts/VortexLayout.qml new file: layouts/qmldir new file: modules/Hyprview.qml new file: modules/SearchBox.qml new file: modules/WindowThumbnail.qml new file: modules/qmldir new file: qs-hyprview-template.qml new file: screenshots/bands.jpeg new file: screenshots/hero.jpeg new file: screenshots/masonry.jpeg new file: screenshots/satellite.jpeg new file: screenshots/smartgrid.jpeg new file: screenshots/spiral.jpeg new file: screenshots/staggered.jpeg new file: screenshots/vortex.jpeg new file: shell.qml --- .../qs-hyprview/layouts/VortexLayout.qml | 82 ++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 config/quickshell/qs-hyprview/layouts/VortexLayout.qml (limited to 'config/quickshell/qs-hyprview/layouts/VortexLayout.qml') diff --git a/config/quickshell/qs-hyprview/layouts/VortexLayout.qml b/config/quickshell/qs-hyprview/layouts/VortexLayout.qml new file mode 100644 index 00000000..6d5fef37 --- /dev/null +++ b/config/quickshell/qs-hyprview/layouts/VortexLayout.qml @@ -0,0 +1,82 @@ +pragma Singleton +import Quickshell + +Singleton { + id: root + + function doLayout(windowList, outerWidth, outerHeight) { + var N = windowList.length + if (N === 0) return [] + + // Safe Area (90%) + var contentScale = 0.90 + var useW = outerWidth * contentScale + var useH = outerHeight * contentScale + var offX = (outerWidth - useW) / 2 + var offY = (outerHeight - useH) / 2 + + var centerX = offX + useW / 2 + var centerY = offY + useH / 2 + + // Maximum radius (distance from center to the furthest edge of safe area) + var maxRadius = Math.min(useW, useH) / 2 + + var result = [] + + // --- THE VORTEX CONFIGURATION --- + + var goldenAngle = Math.PI * (3 - Math.sqrt(5)) + + // PARAMETER TWEAK 1: from 0.3 to 0.5 to keep distant windows readable + var minScale = 0.4 + + // PARAMETER TWEAK 2: from 0.4 to 0.6 (60% of screen height) + var baseSizeFactor = 0.5 + + for (var i = 0; i < N; i++) { + var item = windowList[i] + + var t = i / Math.max(1, N - 1) + if (N === 1) t = 0 + + // PARAMETER TWEAK 3: from 0.9 instead of 0.8 to accommodate larger thumbs + var currentRadius = (maxRadius * 0.85) * Math.sqrt(t) + var currentAngle = i * goldenAngle + var scale = 1.0 - (t * (1.0 - minScale)) + var tilt = (Math.cos(currentAngle) * 8) + + // Coordinates (Polar to Cartesian) + var cx = centerX + currentRadius * Math.cos(currentAngle) + var cy = centerY + currentRadius * Math.sin(currentAngle) + + // Dimensions (Aspect Fit) + var w0 = (item.width > 0) ? item.width : 100 + var h0 = (item.height > 0) ? item.height : 100 + + var baseBoxSize = Math.min(useW, useH) * baseSizeFactor + + var aspect = w0 / h0 + var thumbW, thumbH + + if (aspect > 1) { + thumbW = baseBoxSize * scale + thumbH = thumbW / aspect + } else { + thumbH = baseBoxSize * scale + thumbW = thumbH * aspect + } + + result.push({ + win: item.win, + x: cx - (thumbW / 2), + y: cy - (thumbH / 2), + width: thumbW, + height: thumbH, + rotation: tilt, + zIndex: N - i + }) + } + + return result + } +} -- cgit v1.2.3