Open wallpaper picker from launcher, apply on click, move media bar options to module cog

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-10-13 15:30:17 +02:00
1 parent e71ce9c0a4
commit 2e80ef1181
10 files changed
+49 -79

No files matched your search

+15 -2
View File
@@ -47,12 +47,25 @@ Singleton {
{ key: "preview", label: "Hover preview", choices: ["on", "off"], fallback: "on" }
]
})
// Cog options stored outside the module entry: a config path shared by every
// layout (`setting`), or another module's enabled flag (`module`).
readonly property var sharedOptions: ({
nowPlaying: [
{ key: "visualizer", module: "cava", label: "Visualizer", type: "boolean", description: "Cava bars beside the track; shows system audio and only runs while something plays" },
{ key: "cavaBars", setting: "bar.cava.bars", label: "Visualizer bars", type: "integer", min: 4, max: 24 },
{ key: "cavaStyle", setting: "bar.cava.style", label: "Visualizer style", type: "choice", choices: ["bars", "mirror"] },
{ key: "cavaHide", setting: "bar.cava.hideWhenIdle", label: "Hide while paused", type: "boolean" }
],
cava: [
{ key: "cavaBars", setting: "bar.cava.bars", label: "Bars", type: "integer", min: 4, max: 24 },
{ key: "cavaStyle", setting: "bar.cava.style", label: "Style", type: "choice", choices: ["bars", "mirror"] },
{ key: "cavaHide", setting: "bar.cava.hideWhenIdle", label: "Hide while paused", type: "boolean" }
]
})
// Modules whose options already live on a settings page: the cog jumps there.
readonly property var settingsLinks: ({
clock: { page: "bar", setting: "Show date" },
workspaces: { page: "bar", setting: "Workspace style" },
cava: { page: "media", setting: "Visualizer bars" },
nowPlaying: { page: "media", setting: "Now playing" },
tray: { page: "tray", setting: "" },
volume: { page: "osd", setting: "Step" },
system: { page: "controlcenter", setting: "" },
+3 -1
View File
@@ -39,6 +39,8 @@ Singleton {
id: "wallpaper",
title: "Wallpaper",
command: "wallpaper",
// The launcher command opens the picker itself; the page stays reachable from its cog.
launcherAction: "openWallpaperPicker",
description: "Wallpaper picker and palette generation",
phase: 5,
available: true,
@@ -154,7 +156,7 @@ Singleton {
available: true,
group: "shell",
icon: "󰝚",
keywords: ["Now playing", "Visualizer", "Cava", "Visualizer bars", "Visualizer style", "Hide while paused", "Album artwork", "Track progress", "Album name", "Visualizer in cards", "Preferred player"]
keywords: ["Album artwork", "Track progress", "Album name", "Visualizer in cards", "Preferred player"]
},
{
id: "metrics",