diff options
Diffstat (limited to 'modules/background')
| -rw-r--r-- | modules/background/Background.qml | 35 |
1 files changed, 20 insertions, 15 deletions
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 {} + } } } |