From f0ec6b4b5e84f6465fad7e33180691c5b353ecc5 Mon Sep 17 00:00:00 2001 From: Zacharias-Brohn Date: Wed, 19 Nov 2025 23:38:34 +0100 Subject: [PATCH] config to disable wallpaper --- Config/BackgroundConfig.qml | 7 +++++++ Config/Config.qml | 4 ++-- Modules/Anim.qml | 1 + Wallpaper.qml | 9 +++++++-- 4 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 Config/BackgroundConfig.qml diff --git a/Config/BackgroundConfig.qml b/Config/BackgroundConfig.qml new file mode 100644 index 0000000..50358a6 --- /dev/null +++ b/Config/BackgroundConfig.qml @@ -0,0 +1,7 @@ +import Quickshell.Io +import qs.Modules + +JsonObject { + property int wallFadeDutation: MaterialEasing.standardTime + property bool enabled: true +} diff --git a/Config/Config.qml b/Config/Config.qml index 3baee9d..ccae1fc 100644 --- a/Config/Config.qml +++ b/Config/Config.qml @@ -16,7 +16,7 @@ Singleton { property alias workspaceWidget: adapter.workspaceWidget property alias colors: adapter.colors property alias gpuType: adapter.gpuType - property alias wallFadeDuration: adapter.wallFadeDuration + property alias background: adapter.background FileView { id: root @@ -41,7 +41,7 @@ Singleton { property WorkspaceWidget workspaceWidget: WorkspaceWidget {} property Colors colors: Colors {} property string gpuType: "" - property int wallFadeDuration: MaterialEasing.standardTime + property BackgroundConfig background: BackgroundConfig {} } } } diff --git a/Modules/Anim.qml b/Modules/Anim.qml index 05483fb..c4b7125 100644 --- a/Modules/Anim.qml +++ b/Modules/Anim.qml @@ -1,4 +1,5 @@ import QtQuick +import qs.Modules NumberAnimation { duration: 400 diff --git a/Wallpaper.qml b/Wallpaper.qml index 8fd7db8..c0a651d 100644 --- a/Wallpaper.qml +++ b/Wallpaper.qml @@ -3,9 +3,14 @@ import QtQuick import Quickshell.Wayland import qs.Helpers import qs.Modules +import qs.Config -Scope { - Variants { +Loader { + + asynchronous: true + active: Config.background.enabled + + sourceComponent: Variants { model: Quickshell.screens PanelWindow { id: root