Add glassMxrph shell sources
Initial commit of the Quickshell desktop suite: bar, dock, launcher, settings, Control Center, dashboard, OSD, lock screen, desktop widgets, plugin host with the vendored Noctalia/Omarchy compatibility layer, helpers, packaging, tests and phase documentation. Includes the optimization work so far: usage widgets and dashboard gauges no longer animate continuously, desktop widgets pause while covered, system controls stop flickering on background polls, dock app matching uses an indexed catalog, and workspace ghosts are created only for occupied slots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
99e64a7713
433 files changed
+57792
No files matched your search
@@ -0,0 +1,126 @@
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import "../controls"
|
||||
import "../../components"
|
||||
import "../../services"
|
||||
import "../../media"
|
||||
import "../../services/SettingsLogic.js" as Logic
|
||||
|
||||
SettingsPage {
|
||||
id: root
|
||||
function moduleOn(id) {
|
||||
return ConfigService.data.bar.modules.some(m => m.id === id && m.enabled);
|
||||
}
|
||||
// Adds the module to the centre lane the first time, then just toggles it.
|
||||
function setModule(id, on) {
|
||||
const modules = ConfigService.data.bar.modules;
|
||||
if (modules.some(m => m.id === id))
|
||||
ConfigService.setValue("bar.modules", Logic.editModule(modules, id, "enabled", on));
|
||||
else if (on)
|
||||
ConfigService.setValue("bar.modules", modules.concat([
|
||||
{
|
||||
id: id,
|
||||
position: "center",
|
||||
enabled: true
|
||||
}
|
||||
]));
|
||||
}
|
||||
SettingsSection {
|
||||
description: "Shared playback controls for all compatible MPRIS players."
|
||||
padded: true
|
||||
MediaCard {
|
||||
compact: true
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
}
|
||||
SettingsSection {
|
||||
title: "Bar"
|
||||
description: "Playback and an audio visualizer in the bar. Cava shows system audio, not only the selected player, and only runs while something plays."
|
||||
SettingRow {
|
||||
title: "Now playing"
|
||||
description: "Play/pause and the current track"
|
||||
icon: ""
|
||||
GlassToggle {
|
||||
objectName: "mediaBarNowPlaying"
|
||||
checked: root.moduleOn("nowPlaying")
|
||||
onToggled: root.setModule("nowPlaying", checked)
|
||||
}
|
||||
}
|
||||
SettingRow {
|
||||
title: "Visualizer"
|
||||
description: CavaService.error ? "Cava: " + CavaService.error : "Cava bars; click opens the dashboard's Media tab"
|
||||
icon: ""
|
||||
GlassToggle {
|
||||
objectName: "mediaBarCava"
|
||||
checked: root.moduleOn("cava")
|
||||
onToggled: root.setModule("cava", checked)
|
||||
}
|
||||
}
|
||||
PreferenceSlider {
|
||||
label: "Visualizer bars"
|
||||
icon: ""
|
||||
setting: "bar.cava.bars"
|
||||
from: 4
|
||||
to: 24
|
||||
step: 1
|
||||
enabled: root.moduleOn("cava")
|
||||
}
|
||||
PreferenceChoice {
|
||||
label: "Visualizer style"
|
||||
icon: ""
|
||||
setting: "bar.cava.style"
|
||||
choices: ["bars", "mirror"]
|
||||
enabled: root.moduleOn("cava")
|
||||
}
|
||||
PreferenceToggle {
|
||||
label: "Hide while paused"
|
||||
description: "Collapse the visualizer when nothing is playing"
|
||||
icon: ""
|
||||
setting: "bar.cava.hideWhenIdle"
|
||||
enabled: root.moduleOn("cava")
|
||||
}
|
||||
}
|
||||
SettingsSection {
|
||||
title: "Media cards"
|
||||
description: "The player in the Control Center, dashboard and this page"
|
||||
PreferenceToggle {
|
||||
label: "Album artwork"
|
||||
icon: ""
|
||||
setting: "media.showAlbumArt"
|
||||
}
|
||||
PreferenceToggle {
|
||||
label: "Track progress"
|
||||
icon: ""
|
||||
setting: "media.showProgress"
|
||||
}
|
||||
PreferenceToggle {
|
||||
label: "Album name"
|
||||
icon: ""
|
||||
setting: "media.showAlbum"
|
||||
}
|
||||
PreferenceToggle {
|
||||
label: "Visualizer in cards"
|
||||
description: "Cava bars under the track"
|
||||
icon: ""
|
||||
setting: "media.showCava"
|
||||
}
|
||||
}
|
||||
SettingsSection {
|
||||
title: "Player"
|
||||
PreferenceChoice {
|
||||
label: "Preferred player"
|
||||
icon: ""
|
||||
setting: "media.preferredPlayer"
|
||||
choices: ["automatic"].concat(MediaService.players.map(p => p.dbusName)).concat(MediaService.players.some(p => p.dbusName === ConfigService.data.media.preferredPlayer) || ConfigService.data.media.preferredPlayer === "automatic" ? [] : [ConfigService.data.media.preferredPlayer])
|
||||
}
|
||||
SettingRow {
|
||||
title: "Player ID"
|
||||
description: "Preferred MPRIS player ID, or automatic"
|
||||
GlassTextField {
|
||||
Layout.preferredWidth: 240
|
||||
text: ConfigService.data.media.preferredPlayer
|
||||
onEditingFinished: ConfigService.setValue("media.preferredPlayer", text || "automatic")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user