Added a toggle for Noctalia-shell wallpaper management
This commit is contained in:
parent
934c8c61b3
commit
2ddb14a95f
4 changed files with 11 additions and 2 deletions
|
|
@ -164,6 +164,7 @@ Singleton {
|
||||||
|
|
||||||
// wallpaper
|
// wallpaper
|
||||||
property JsonObject wallpaper: JsonObject {
|
property JsonObject wallpaper: JsonObject {
|
||||||
|
property bool enabled: true
|
||||||
property string directory: "/usr/share/wallpapers"
|
property string directory: "/usr/share/wallpapers"
|
||||||
property bool enableMultiMonitorDirectories: false
|
property bool enableMultiMonitorDirectories: false
|
||||||
property bool setWallpaperOnAllMonitors: true
|
property bool setWallpaperOnAllMonitors: true
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ Variants {
|
||||||
|
|
||||||
required property ShellScreen modelData
|
required property ShellScreen modelData
|
||||||
|
|
||||||
active: Settings.isLoaded && modelData
|
active: Settings.isLoaded && modelData && Settings.data.wallpaper.enabled
|
||||||
|
|
||||||
sourceComponent: PanelWindow {
|
sourceComponent: PanelWindow {
|
||||||
id: root
|
id: root
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ Variants {
|
||||||
delegate: Loader {
|
delegate: Loader {
|
||||||
required property ShellScreen modelData
|
required property ShellScreen modelData
|
||||||
|
|
||||||
active: Settings.isLoaded && CompositorService.isNiri && modelData
|
active: Settings.isLoaded && CompositorService.isNiri && modelData && Settings.data.wallpaper.enabled
|
||||||
|
|
||||||
property string wallpaper: ""
|
property string wallpaper: ""
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,15 @@ import qs.Widgets
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
NToggle {
|
||||||
|
label: "Enable Wallpaper Management"
|
||||||
|
description: "Let Quickshell manage your wallpaper. Disable this if you use an external wallpaper daemon like swww."
|
||||||
|
checked: Settings.data.wallpaper.enabled
|
||||||
|
onToggled: checked => Settings.data.wallpaper.enabled = checked
|
||||||
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
enabled: Settings.data.wallpaper.enabled
|
||||||
spacing: Style.marginL * scaling
|
spacing: Style.marginL * scaling
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
NTextInput {
|
NTextInput {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue