diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-20 16:43:47 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-20 16:43:47 +1000 |
| commit | 4cd554d19154a6c931d68e955751f9a66b60d9f2 (patch) | |
| tree | 036ebde8cc1dc6b442079158cc393e1859d14e42 /modules | |
| parent | feat: add apple studio display brightness support (#214) (diff) | |
| download | caelestia-shell-4cd554d19154a6c931d68e955751f9a66b60d9f2.tar.gz caelestia-shell-4cd554d19154a6c931d68e955751f9a66b60d9f2.tar.bz2 caelestia-shell-4cd554d19154a6c931d68e955751f9a66b60d9f2.zip | |
config: allow disabling background
Closes #208
Diffstat (limited to 'modules')
| -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 {} + } } } |