From 4cd554d19154a6c931d68e955751f9a66b60d9f2 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 20 Jul 2025 16:43:47 +1000 Subject: config: allow disabling background Closes #208 --- modules/background/Background.qml | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) (limited to 'modules/background/Background.qml') diff --git a/modules/background/Background.qml b/modules/background/Background.qml index 72748d8..c744baa 100644 --- a/modules/background/Background.qml +++ b/modules/background/Background.qml @@ -1,26 +1,31 @@ import qs.widgets +import qs.config import Quickshell import Quickshell.Wayland -Variants { - model: Quickshell.screens +LazyLoader { + activeAsync: Config.background.enabled - StyledWindow { - id: win + Variants { + model: Quickshell.screens - required property ShellScreen modelData + StyledWindow { + id: win - screen: modelData - name: "background" - WlrLayershell.exclusionMode: ExclusionMode.Ignore - WlrLayershell.layer: WlrLayer.Background - color: "black" + required property ShellScreen modelData - anchors.top: true - anchors.bottom: true - anchors.left: true - anchors.right: true + screen: modelData + name: "background" + WlrLayershell.exclusionMode: ExclusionMode.Ignore + WlrLayershell.layer: WlrLayer.Background + color: "black" - Wallpaper {} + anchors.top: true + anchors.bottom: true + anchors.left: true + anchors.right: true + + Wallpaper {} + } } } -- cgit v1.2.3-freya