From 0bd80939523b843fbdefb9b1eab7019c0dd19033 Mon Sep 17 00:00:00 2001 From: Don Williams Date: Sat, 11 Jul 2026 20:23:14 -0400 Subject: Fixed qs overview and qs-hyprview Fixed lua bindings, layerrules and set overview to not show special workstations and show empty workspaces Signed-off-by: Don Williams On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/quickshell/overview/common/Config.qml new file: config/quickshell/overview/common/widgets/RectangularShadow.qml modified: config/quickshell/overview/common/widgets/StyledRectangularShadow.qml modified: config/quickshell/overview/common/widgets/qmldir modified: config/quickshell/overview/config.example.json --- config/quickshell/overview/common/Config.qml | 4 ++-- .../overview/common/widgets/RectangularShadow.qml | 28 ++++++++++++++++++++++ .../common/widgets/StyledRectangularShadow.qml | 1 - config/quickshell/overview/common/widgets/qmldir | 1 + config/quickshell/overview/config.example.json | 4 ++-- 5 files changed, 33 insertions(+), 5 deletions(-) create mode 100644 config/quickshell/overview/common/widgets/RectangularShadow.qml (limited to 'config') diff --git a/config/quickshell/overview/common/Config.qml b/config/quickshell/overview/common/Config.qml index 621b39db..7206503d 100644 --- a/config/quickshell/overview/common/Config.qml +++ b/config/quickshell/overview/common/Config.qml @@ -108,7 +108,7 @@ Singleton { property int columns: root.readInt("overview.columns", 5) property real scale: root.readReal("overview.scale", 0.16) property bool enable: root.readBool("overview.enable", true) - property bool hideEmptyRows: root.readBool("overview.hideEmptyRows", true) + property bool hideEmptyRows: root.readBool("overview.hideEmptyRows", false) property bool closeOnFocusLoss: root.readBool("overview.closeOnFocusLoss", true) property bool useWorkspaceMap: root.readBool("overview.useWorkspaceMap", false) property var workspaceMap: root.read("overview.workspaceMap", []) @@ -118,7 +118,7 @@ Singleton { property string previewMode: root.readString("overview.previewMode", "live") property bool includeInactiveMonitorPreviews: root.readBool("overview.includeInactiveMonitorPreviews", true) property int previewRecaptureDelayMs: root.readInt("overview.previewRecaptureDelayMs", 60) - property bool showSpecialWorkspaces: root.readBool("overview.showSpecialWorkspaces", true) + property bool showSpecialWorkspaces: root.readBool("overview.showSpecialWorkspaces", false) property var specialWorkspaces: root.read("overview.specialWorkspaces", []) property int specialWorkspaceColumns: root.readInt("overview.specialWorkspaceColumns", columns) property string emptyWorkspaceWallpaper: root.readString("overview.emptyWorkspaceWallpaper", "") diff --git a/config/quickshell/overview/common/widgets/RectangularShadow.qml b/config/quickshell/overview/common/widgets/RectangularShadow.qml new file mode 100644 index 00000000..2289d4c0 --- /dev/null +++ b/config/quickshell/overview/common/widgets/RectangularShadow.qml @@ -0,0 +1,28 @@ +import QtQuick +import QtQuick.Effects + +Item { + id: root + + property var target: parent + property real radius: 0 + property real blur: 0 + property vector2d offset: Qt.vector2d(0.0, 0.0) + property real spread: 0 + property color color: "black" + property bool cached: false + + anchors.fill: target + visible: target !== null + + MultiEffect { + anchors.fill: target + source: target + shadowEnabled: true + shadowColor: root.color + shadowBlur: root.blur + shadowHorizontalOffset: root.offset.x + shadowVerticalOffset: root.offset.y + shadowOpacity: 1.0 + } +} diff --git a/config/quickshell/overview/common/widgets/StyledRectangularShadow.qml b/config/quickshell/overview/common/widgets/StyledRectangularShadow.qml index ccdff1ac..dba2159f 100644 --- a/config/quickshell/overview/common/widgets/StyledRectangularShadow.qml +++ b/config/quickshell/overview/common/widgets/StyledRectangularShadow.qml @@ -3,7 +3,6 @@ import QtQuick.Effects import ".." RectangularShadow { - required property var target anchors.fill: target radius: 20 blur: 0.9 * Appearance.sizes.elevationMargin diff --git a/config/quickshell/overview/common/widgets/qmldir b/config/quickshell/overview/common/widgets/qmldir index 0efe1360..c974f193 100644 --- a/config/quickshell/overview/common/widgets/qmldir +++ b/config/quickshell/overview/common/widgets/qmldir @@ -1,4 +1,5 @@ StyledText 1.0 StyledText.qml StyledRectangularShadow 1.0 StyledRectangularShadow.qml +RectangularShadow 1.0 RectangularShadow.qml StyledToolTip 1.0 StyledToolTip.qml StyledToolTipContent 1.0 StyledToolTipContent.qml diff --git a/config/quickshell/overview/config.example.json b/config/quickshell/overview/config.example.json index 2f3a4fe9..1c764788 100644 --- a/config/quickshell/overview/config.example.json +++ b/config/quickshell/overview/config.example.json @@ -46,7 +46,7 @@ "columns": 5, "scale": 0.16, "enable": true, - "hideEmptyRows": true, + "hideEmptyRows": false, "closeOnFocusLoss": true, "useWorkspaceMap": false, "workspaceMap": [0, 10], @@ -56,7 +56,7 @@ "previewMode": "live", "includeInactiveMonitorPreviews": true, "previewRecaptureDelayMs": 60, - "showSpecialWorkspaces": true, + "showSpecialWorkspaces": false, "specialWorkspaces": [], "specialWorkspaceColumns": 5, "emptyWorkspaceWallpaper": "", -- cgit v1.2.3