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:
mxandClaude Opus 5.5 committed 2026-10-07 22:36:17 +02:00
commit 99e64a7713
433 files changed
+57792

No files matched your search

+85
View File
@@ -0,0 +1,85 @@
import QtQuick
import QtQuick.Layouts
import "../controls"
import "../../services"
import "../../theme"
SettingsPage {
SettingsSection {
padded: true
RowLayout {
Layout.fillWidth: true
spacing: 16
Image {
objectName: "aboutCrest"
Layout.preferredWidth: 96
Layout.preferredHeight: 96
source: Qt.resolvedUrl("../../assets/glassmxrph-256.png")
sourceSize: Qt.size(192, 192)
fillMode: Image.PreserveAspectFit
smooth: true
mipmap: true
}
ColumnLayout {
Layout.fillWidth: true
spacing: 3
Text {
text: "GlassMxrph"
color: Theme.text
font.pixelSize: 26
font.weight: Font.DemiBold
}
Text {
text: "Portable Quickshell desktop suite for Hyprland"
color: Theme.textSecondary
font.pixelSize: 12
wrapMode: Text.Wrap
Layout.fillWidth: true
}
}
}
}
SettingsSection {
title: "Environment"
SettingRow {
title: "Quickshell"
description: "Tested release"
Text {
text: "0.3.1"
color: Theme.textSecondary
}
}
SettingRow {
title: "Compositor"
description: "Tested release"
Text {
text: "Hyprland 0.56.2"
color: Theme.textSecondary
}
}
SettingRow {
title: "Icons"
description: Icons.available ? "Using the installed " + Icons.family : "Install a Nerd Font (e.g. Symbols Nerd Font) for icon glyphs"
Text {
text: Icons.available ? "Nerd Font" : "Letters"
color: Theme.textSecondary
}
}
SettingRow {
title: "Configuration"
description: ConfigService.directory + "/config.json"
Text {
text: ConfigService.writable ? "Writable" : "Read-only"
color: ConfigService.writable ? Theme.textSecondary : Theme.urgent
}
}
}
SettingsSection {
title: "Status"
padded: true
SettingNote {
Layout.leftMargin: 0
text: "Phase 9 · Glass and interaction polish. MPRIS media and system controls are available. Shared system metrics are available. HyprGlass is optional; host integration is separate."
}
}
}
+280
View File
@@ -0,0 +1,280 @@
pragma ComponentBehavior: Bound
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import "../controls"
import "../../components"
import "../../services"
import "../../theme"
// HyprGlass actions stay pinned above the scrolling preferences.
ColumnLayout {
spacing: 14
Component.onCompleted: GlassService.probe()
Rectangle {
objectName: "glassActions"
Layout.fillWidth: true
Layout.rightMargin: 14
implicitHeight: actions.implicitHeight + 20
radius: Math.max(10, Theme.radius * 0.7)
color: Qt.alpha(Theme.accent, 0.12)
border.width: 1
border.color: Qt.alpha(Theme.accent, 0.35)
RowLayout {
id: actions
anchors.fill: parent
anchors.margins: 10
anchors.leftMargin: 12
spacing: 12
GlassIcon {
glyph: "󰂵"
fallback: "G"
size: 32
}
ColumnLayout {
Layout.fillWidth: true
spacing: 1
Text {
text: "HyprGlass"
color: Theme.text
font.pixelSize: 13
font.weight: Font.Medium
}
Text {
text: GlassService.error || GlassService.notice || (GlassService.state.available ? "Glass changes reach the desktop and apps when applied" : "HyprGlass is not available for this compositor")
color: GlassService.error ? Theme.urgent : Theme.textSecondary
font.pixelSize: 11
wrapMode: Text.Wrap
Layout.fillWidth: true
}
}
GlassButton {
objectName: "glassRestore"
text: "Restore previous"
enabled: !GlassService.busy
onClicked: GlassService.restore()
}
GlassButton {
objectName: "glassApply"
text: GlassService.busy ? "Applying…" : "Apply"
accented: true
enabled: !!GlassService.state.available && !GlassService.busy
onClicked: GlassService.apply(false)
}
}
}
SettingsPage {
Layout.fillWidth: true
Layout.fillHeight: true
SettingsSection {
title: "Accent"
PreferenceChoice {
label: "Accent source"
description: "Pick a colour, generate one from the wallpaper, or follow the system"
icon: "󰏘"
setting: "appearance.accentSource"
choices: ["custom", "matugen", "system"]
}
SettingRow {
visible: ThemeManager.source === "custom"
title: "Custom accent"
description: "Hex colour used across the shell"
setting: "appearance.customAccent"
GlassTextField {
Layout.preferredWidth: 120
color: Theme.text
selectByMouse: true
text: ConfigService.data.appearance.customAccent
validator: RegularExpressionValidator {
regularExpression: /#[0-9a-fA-F]{6}/
}
onEditingFinished: if (acceptableInput)
ConfigService.setValue("appearance.customAccent", text)
}
below: GlassColorPicker {
Layout.fillWidth: true
selectedColor: ConfigService.data.appearance.customAccent
onChosen: color => ConfigService.setValue("appearance.customAccent", color.toString())
}
}
SettingNote {
text: ThemeManager.status !== ThemeManager.source ? ThemeManager.status : ""
}
}
SettingsSection {
visible: ThemeManager.source === "matugen"
title: "Matugen"
description: MatugenService.version || "Select an installed Matugen 4.2.x executable"
SettingRow {
title: "Executable"
description: "matugen or an absolute executable path"
GlassTextField {
Layout.preferredWidth: 220
text: ConfigService.data.matugen.executable
placeholderText: "matugen"
onEditingFinished: ConfigService.setValue("matugen.executable", text)
}
GlassButton {
text: "Check"
onClicked: MatugenService.probe()
}
}
PreferenceChoice {
label: "Scheme"
setting: "matugen.scheme"
choices: MatugenService.schemes
enabled: choices.length > 0
}
PreferenceSlider {
label: "Contrast"
setting: "matugen.contrast"
from: -1
to: 1
step: 0.1
enabled: MatugenService.version !== ""
}
PreferenceToggle {
label: "Regenerate on wallpaper change"
setting: "matugen.regenerateOnWallpaperChange"
}
SettingRow {
title: "Palette"
description: MatugenService.busy ? "Generating from the current wallpaper…" : "Generate a new palette from the current wallpaper"
GlassButton {
text: MatugenService.busy ? "Generating…" : "Regenerate"
enabled: !MatugenService.busy
onClicked: MatugenService.regenerate()
}
}
SettingNote {
warning: true
text: MatugenService.error
}
}
SettingsSection {
title: "Surfaces"
description: "Transparency and shape of the shell’s own panels"
SettingRow {
title: "Glass tint"
description: "Colour behind the glass, like Ghostty’s background. Black matches a black Ghostty background."
icon: "󰏘"
setting: "appearance.glassTint"
Repeater {
model: [
{
name: "Black",
value: "#000000"
},
{
name: "Graphite",
value: "#1b1b1b"
},
{
name: "Slate",
value: "#171b20"
}
]
Rectangle {
id: swatch
required property var modelData
readonly property bool selected: ConfigService.data.appearance.glassTint.toLowerCase() === modelData.value
objectName: "glassTint-" + modelData.name.toLowerCase()
implicitWidth: 26
implicitHeight: 26
radius: 13
color: modelData.value
border.width: selected ? 2 : 1
border.color: selected ? Theme.accent : Theme.border
ToolTip.visible: swatchArea.containsMouse
ToolTip.delay: 400
ToolTip.text: modelData.name
MouseArea {
id: swatchArea
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: ConfigService.setValue("appearance.glassTint", swatch.modelData.value)
}
}
}
GlassTextField {
Layout.preferredWidth: 96
text: ConfigService.data.appearance.glassTint
validator: RegularExpressionValidator {
regularExpression: /#[0-9a-fA-F]{6}/
}
onEditingFinished: if (acceptableInput)
ConfigService.setValue("appearance.glassTint", text)
}
}
PreferenceSlider {
label: "Glass opacity"
description: "Bar, dock and cards"
icon: "󰂵"
setting: "appearance.glassOpacity"
from: 0.15
}
PreferenceSlider {
label: "Panel opacity"
description: "Popups, launcher and settings"
icon: "󰕮"
setting: "appearance.panelOpacity"
from: 0.15
}
PreferenceSlider {
label: "Border opacity"
icon: "󰢡"
setting: "appearance.borderOpacity"
}
PreferenceSlider {
label: "Corner radius"
icon: "󰢡"
setting: "appearance.radius"
to: 48
step: 1
unit: " px"
}
PreferenceToggle {
label: "Shadows"
icon: "󰘷"
setting: "appearance.shadows"
}
PreferenceToggle {
label: "Glass highlights"
description: "Subtle top sheen and rim light"
icon: "󰖨"
setting: "appearance.highlights"
}
}
SettingsSection {
title: "Motion"
PreferenceSlider {
label: "Animation duration"
icon: "󰔟"
setting: "animation.duration"
to: 1000
step: 10
unit: " ms"
}
PreferenceSlider {
label: "Animation intensity"
description: "Distance of slides, lifts and scale effects"
icon: "󰑓"
setting: "animation.intensity"
}
PreferenceToggle {
label: "Reduced motion"
description: "Disable animations everywhere"
icon: "󰒲"
setting: "animation.reducedMotion"
}
}
SettingsSection {
title: "HyprGlass"
description: "Compositor glass for the desktop and applications. Surface opacity above controls the shell’s own transparency."
GlassSettings {
Layout.fillWidth: true
}
}
}
}
+16
View File
@@ -0,0 +1,16 @@
import QtQuick
import QtQuick.Layouts
import "../controls"
import "../../controlcenter/modules" as Modules
import "../../services"
SettingsPage {
Modules.Audio {
detailed: true
Layout.fillWidth: true
}
SettingNote {
warning: true
text: SystemService.error
}
}
+183
View File
@@ -0,0 +1,183 @@
pragma ComponentBehavior: Bound
import QtQuick
import QtQuick.Layouts
import Quickshell
import "../controls"
import "../../components"
import "../../core"
import "../../theme"
import "../../services/SettingsLogic.js" as Logic
import "../../bar/modules" as Bar
SettingsPage {
id: root
// Screen whose bar is being edited; "" is the shared layout.
property string editScreen: ""
readonly property bool ownLayout: BarLayout.hasOwn(editScreen)
readonly property var modules: BarLayout.modulesFor(editScreen)
function edit(id, key, value) {
BarLayout.save(editScreen, Logic.editModule(modules, id, key, value));
}
function move(id, direction) {
BarLayout.save(editScreen, Logic.moveModule(modules, id, direction));
}
SettingsSection {
title: "Layout"
PreferenceSlider {
label: "Bar height"
icon: "󰕮"
setting: "bar.height"
from: 32
to: 80
step: 1
unit: " px"
}
PreferenceSlider {
label: "Margin"
description: "Gap between the bar and the screen edge"
icon: "󰹑"
setting: "bar.margin"
from: 0
to: 100
step: 1
unit: " px"
}
}
SettingsSection {
title: "Modules"
description: "Drag a module by its grip to reorder it or move it between lanes. Keyboard: Ctrl+↑/↓ reorders; Alt+←/→ changes lane."
padded: true
RowLayout {
Layout.fillWidth: true
spacing: 12
Text {
text: "Screen"
color: Theme.textSecondary
font.pixelSize: 12
}
GlassSegmented {
objectName: "barScreenPicker"
model: ["all screens"].concat(Quickshell.screens.map(s => s.name))
currentIndex: root.editScreen ? model.indexOf(root.editScreen) : 0
onActivated: (index, value) => root.editScreen = index === 0 ? "" : value
}
Item {
Layout.fillWidth: true
}
Text {
visible: root.editScreen !== ""
text: "Separate layout"
color: Theme.text
font.pixelSize: 12
}
GlassToggle {
objectName: "barOwnLayout"
visible: root.editScreen !== ""
checked: root.ownLayout
onToggled: BarLayout.setOwn(root.editScreen, checked)
}
}
SettingNote {
Layout.leftMargin: 0
text: root.editScreen === "" ? (Object.keys(BarLayout.screens).length ? "Shared layout, used by every screen without its own: " + Quickshell.screens.map(s => s.name).filter(n => !BarLayout.hasOwn(n)).join(", ") : "One layout for every screen. Pick a screen to give it its own modules.") : root.ownLayout ? root.editScreen + " has its own modules; changes here only affect that bar." : root.editScreen + " uses the shared layout. Turn on Separate layout to change its modules on their own."
}
BarEditor {
Layout.fillWidth: true
screenName: root.editScreen
opacity: root.editScreen === "" || root.ownLayout ? 1 : 0.45
enabled: root.editScreen === "" || root.ownLayout
}
Flow {
Layout.fillWidth: true
spacing: 8
visible: addRepeater.count > 0
Repeater {
id: addRepeater
model: root.editScreen === "" || root.ownLayout ? ModuleRegistry.available.filter(id => !root.modules.some(m => m.id === id)) : []
GlassButton {
required property string modelData
text: "+ " + ModuleRegistry.title(modelData)
onClicked: BarLayout.save(root.editScreen, root.modules.concat([
{
id: modelData,
position: modelData === "activeWindow" ? "center" : "right",
enabled: true
}
]))
}
}
}
SettingNote {
Layout.leftMargin: 0
text: "The system button opens Control Center. Metrics pills share the collector configured under System Metrics."
}
}
SettingsSection {
title: "Clock"
PreferenceToggle {
label: "Show date"
icon: "󰃭"
setting: "bar.clock.showDate"
}
PreferenceToggle {
label: "24-hour time"
icon: "󰥔"
setting: "bar.clock.use24Hour"
}
PreferenceToggle {
label: "Show seconds"
icon: "󰔛"
setting: "bar.clock.showSeconds"
}
}
SettingsSection {
title: "Workspaces"
PreferenceChoice {
label: "Workspace style"
description: "Numbers, roman numerals, dots (filled when occupied) or Pac-Man"
icon: "󰏘"
setting: "bar.workspaces.style"
choices: ["numbers", "roman", "dots", "pacman"]
}
SettingRow {
title: "Preview"
description: "Live workspaces; the outline marks a workspace shown on another monitor"
icon: "󰈈"
// Below the text with the full card width; scaled down when wider (e.g. 20 roman numerals).
below: Item {
id: previewBox
Layout.fillWidth: true
implicitHeight: preview.height * preview.scale
Bar.WorkspacesModule {
id: preview
objectName: "workspacesPreview"
barScreen: ScreenService.active
transformOrigin: Item.TopLeft
scale: Math.min(1, previewBox.width / width)
}
}
}
PreferenceSlider {
label: "Workspace count"
icon: "󰕰"
setting: "bar.workspaces.count"
from: 1
to: 20
step: 1
}
}
SettingsSection {
SettingRow {
title: "Tray"
description: "Tray icons, hover menus and background"
icon: "󰀻"
clickable: true
onClicked: ShellState.openSettings("tray")
Text {
text: "›"
color: Theme.textSecondary
font.pixelSize: 20
}
}
}
}
+76
View File
@@ -0,0 +1,76 @@
pragma ComponentBehavior: Bound
import QtQuick
import QtQuick.Layouts
import Quickshell.Bluetooth
import "../controls"
import "../../components"
import "../../services"
SettingsPage {
SettingsSection {
SettingRow {
title: "Bluetooth"
description: BluetoothService.adapter ? BluetoothService.summary : "No Bluetooth adapter"
icon: "󰂯"
GlassToggle {
checked: BluetoothService.enabled
enabled: !!BluetoothService.adapter && BluetoothService.adapter.state !== BluetoothAdapterState.Blocked
onClicked: {
BluetoothService.toggle();
checked = Qt.binding(() => BluetoothService.enabled);
}
Accessible.name: "Bluetooth power"
}
}
SettingRow {
title: "Adapter"
icon: "󰂰"
GlassComboBox {
Layout.preferredWidth: 240
model: BluetoothService.adapters.map(a => a.name)
currentIndex: BluetoothService.adapters.indexOf(BluetoothService.adapter)
enabled: BluetoothService.adapters.length > 0
onActivated: BluetoothService.adapterId = BluetoothService.adapters[currentIndex].adapterId
}
}
SettingRow {
title: "Pairing"
description: "Pairing and PIN confirmation use the existing Bluetooth manager. Paired devices can connect here."
icon: "󰒓"
GlassButton {
text: "Pair devices…"
enabled: !SystemService.acting
onClicked: SystemService.action("manager", "bluetooth", false)
}
}
}
SettingsSection {
title: "Devices"
visible: devices.count > 0
Repeater {
id: devices
model: BluetoothService.devices.filter(d => d.paired)
SettingRow {
id: entry
required property var modelData
title: modelData.name
description: BluetoothDeviceState.toString(modelData.state) + (modelData.batteryAvailable ? " · " + Math.round(modelData.battery * 100) + "%" : "")
icon: modelData.connected ? "󰂱" : "󰂯"
GlassButton {
text: entry.modelData.connected ? "Disconnect" : "Connect"
accented: !entry.modelData.connected
enabled: BluetoothService.enabled && !BluetoothService.pending
onClicked: BluetoothService.connectDevice(entry.modelData)
}
}
}
}
SettingNote {
warning: true
text: BluetoothService.error
}
SettingNote {
warning: true
text: SystemService.error
}
}
@@ -0,0 +1,91 @@
pragma ComponentBehavior: Bound
import QtQuick
import QtQuick.Layouts
import "../controls"
import "../../controlcenter"
import "../../components"
import "../../services"
SettingsPage {
id: root
function edit(index, enabled) {
const list = ConfigService.data.controlCenter.modules.map(m => Object.assign({}, m));
list[index].enabled = enabled;
ConfigService.setValue("controlCenter.modules", list);
}
function move(index, step) {
const list = ConfigService.data.controlCenter.modules.slice();
const to = index + step;
if (to < 0 || to >= list.length)
return;
const entry = list.splice(index, 1)[0];
list.splice(to, 0, entry);
ConfigService.setValue("controlCenter.modules", list);
}
SettingsSection {
title: "Panel"
PreferenceSlider {
label: "Panel width"
icon: "󰹑"
setting: "controlCenter.width"
from: 320
to: 600
step: 10
unit: " px"
}
}
SettingsSection {
title: "Modules"
description: "Enable, disable and order the Control Center cards"
Repeater {
model: ConfigService.data.controlCenter.modules
SettingRow {
id: card
required property var modelData
required property int index
readonly property var entry: ControlRegistry.entry(modelData.id)
title: entry ? entry.title : modelData.id + " (unavailable)"
GlassIconButton {
objectName: "control-up-" + card.modelData.id
text: "↑"
enabled: card.index > 0
onClicked: root.move(card.index, -1)
}
GlassIconButton {
objectName: "control-down-" + card.modelData.id
text: "↓"
enabled: card.index < ConfigService.data.controlCenter.modules.length - 1
onClicked: root.move(card.index, 1)
}
GlassToggle {
objectName: "control-enable-" + card.modelData.id
checked: card.modelData.enabled
onClicked: root.edit(card.index, checked)
}
}
}
Flow {
Layout.fillWidth: true
Layout.margins: 8
spacing: 8
visible: addRepeater.count > 0
Repeater {
id: addRepeater
model: Object.keys(ControlRegistry.modules).filter(id => !ConfigService.data.controlCenter.modules.some(m => m.id === id))
GlassButton {
required property string modelData
text: "+ " + ControlRegistry.modules[modelData].title
onClicked: ConfigService.setValue("controlCenter.modules", ConfigService.data.controlCenter.modules.concat([
{
id: modelData,
enabled: true
}
]))
}
}
}
}
SettingNote {
text: "Super+X can use the documented IPC binding. Existing keybinds are unchanged."
}
}
+206
View File
@@ -0,0 +1,206 @@
pragma ComponentBehavior: Bound
import QtQuick
import QtQuick.Layouts
import "../controls"
import "../../components"
import "../../core"
import "../../services"
import "../../theme"
SettingsPage {
id: root
readonly property var options: ConfigService.data.dashboard
readonly property var placements: ["top-left", "top-center", "top-right", "center"]
function edit(index, enabled) {
const list = options.tabs.map(t => Object.assign({}, t));
list[index].enabled = enabled;
ConfigService.setValue("dashboard.tabs", list);
}
function move(index, step) {
const list = options.tabs.slice();
const to = index + step;
if (to < 0 || to >= list.length)
return;
const entry = list.splice(index, 1)[0];
list.splice(to, 0, entry);
ConfigService.setValue("dashboard.tabs", list);
}
SettingsSection {
title: "Dashboard"
description: "A tabbed glass panel below the bar. Open it from the clock, with “glassmxrph dashboard [tab]”, or bind that to a key. ←/→, Tab and 1–4 switch tabs."
PreferenceToggle {
label: "Enable dashboard"
icon: "󰕮"
setting: "dashboard.enabled"
}
PreferenceToggle {
label: "Open from clock"
description: "Click the bar clock to toggle it"
icon: "󰥔"
setting: "dashboard.openFromClock"
}
PreferenceToggle {
label: "Remember last tab"
description: "Otherwise it opens on the first tab"
icon: "󰋚"
setting: "dashboard.rememberTab"
}
SettingRow {
title: "Preview"
icon: "󰈈"
GlassButton {
objectName: "dashboardOpenButton"
text: "Open dashboard"
enabled: root.options.enabled
onClicked: ShellState.openDashboard("")
}
}
}
SettingsSection {
title: "Placement"
PreferenceChoice {
label: "Position"
icon: "󰹑"
setting: "dashboard.position"
choices: root.placements
}
SettingRow {
title: "Screen"
description: "Click a spot to move the dashboard"
icon: "󰍹"
below: Item {
Layout.fillWidth: true
implicitHeight: 150
// Miniature screen with the bar and the four possible spots.
Rectangle {
id: screenPreview
objectName: "dashboardPlacementPreview"
anchors.horizontalCenter: parent.horizontalCenter
width: 240
height: 140
radius: 10
color: Theme.fill
border.width: 1
border.color: Theme.hairline
Rectangle {
x: 6
y: 6
width: parent.width - 12
height: 8
radius: 4
color: Theme.surfaceVariant
border.width: 1
border.color: Theme.hairline
}
Repeater {
model: root.placements
Rectangle {
id: spot
required property string modelData
readonly property bool active: root.options.position === modelData
objectName: "dashboardSpot-" + modelData
width: 64
height: 38
radius: 7
x: modelData === "top-left" ? 10 : modelData === "top-right" ? screenPreview.width - width - 10 : (screenPreview.width - width) / 2
y: modelData === "center" ? 76 : 22
color: active ? Qt.alpha(Theme.accent, 0.55) : spotArea.containsMouse ? Theme.hover : Theme.transparent
border.width: 1
border.color: active ? Theme.accentVivid : Qt.alpha(Theme.text, 0.18)
z: active ? 2 : 1
Behavior on color {
ColorAnimation {
duration: Theme.duration
}
}
Text {
anchors.centerIn: parent
visible: spot.active || spotArea.containsMouse
text: spot.modelData
color: Theme.text
font.pixelSize: 10
}
MouseArea {
id: spotArea
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: ConfigService.setValue("dashboard.position", spot.modelData)
}
}
}
}
}
}
}
SettingsSection {
title: "Tabs"
description: "Order and visibility of the dashboard tabs"
Repeater {
model: root.options.tabs
SettingRow {
id: tabRow
required property var modelData
required property int index
readonly property var entry: DashboardRegistry.entry(modelData.id)
title: entry ? entry.title : modelData.id + " (unavailable)"
description: entry ? entry.description : ""
icon: entry ? entry.glyph : ""
GlassIconButton {
objectName: "dash-up-" + tabRow.modelData.id
text: "↑"
enabled: tabRow.index > 0
onClicked: root.move(tabRow.index, -1)
Accessible.name: "Move " + tabRow.title + " up"
}
GlassIconButton {
objectName: "dash-down-" + tabRow.modelData.id
text: "↓"
enabled: tabRow.index < root.options.tabs.length - 1
onClicked: root.move(tabRow.index, 1)
Accessible.name: "Move " + tabRow.title + " down"
}
GlassToggle {
objectName: "dash-enable-" + tabRow.modelData.id
checked: tabRow.modelData.enabled
// Keep at least one tab.
enabled: !checked || root.options.tabs.filter(t => t.enabled).length > 1
onClicked: root.edit(tabRow.index, checked)
}
}
}
Flow {
Layout.fillWidth: true
Layout.margins: 8
spacing: 8
visible: addRepeater.count > 0
Repeater {
id: addRepeater
model: Object.keys(DashboardRegistry.tabs).filter(id => !root.options.tabs.some(t => t.id === id))
GlassButton {
required property string modelData
text: "+ " + DashboardRegistry.tabs[modelData].title
onClicked: ConfigService.setValue("dashboard.tabs", root.options.tabs.concat([
{
id: modelData,
enabled: true
}
]))
}
}
}
}
SettingsSection {
title: "Media"
PreferenceToggle {
label: "EasyEffects equalizer"
description: EasyEffectsService.known && !EasyEffectsService.installed ? "EasyEffects is not installed" : "Ten-band equalizer and presets in the Media tab"
icon: "󰺢"
setting: "dashboard.easyEffects"
}
}
SettingNote {
text: "The equalizer writes its own EasyEffects output preset, glassmxrph_eq, and starts EasyEffects in service mode when you apply. Restart and Shut down ask for confirmation."
}
Component.onCompleted: EasyEffectsService.refresh()
}
+69
View File
@@ -0,0 +1,69 @@
import QtQuick
import QtQuick.Layouts
import "../controls"
import "../../controlcenter/modules" as Modules
import "../../components"
import "../../services"
SettingsPage {
SettingNote {
Layout.leftMargin: 4
text: "Backlight brightness and Night Light. Display modes remain managed by Hyprland."
}
Modules.Brightness {
Layout.fillWidth: true
}
Modules.NightLight {
Layout.fillWidth: true
}
SettingsSection {
title: "Brightness"
PreferenceChoice {
label: "Backlight device"
icon: "󰃠"
setting: "system.brightness.device"
choices: ["auto"].concat(SystemService.state.brightness && SystemService.state.brightness.devices ? SystemService.state.brightness.devices.map(d => d.id) : [])
}
}
SettingsSection {
title: "Night Light"
PreferenceSlider {
label: "Night temperature"
icon: "󰖔"
setting: "system.nightLight.temperature"
from: 1000
to: 6500
step: 100
unit: " K"
}
}
SettingsSection {
title: "Providers"
description: "Optional providers: status commands return JSON; set commands accept {value} (brightness percent or temperature) and {enabled} (Night Light boolean). Empty arrays use brightnessctl and an already running wl-gammarelay. Commands run only when a control is used or while its panel is open."
padded: true
CommandPreference {
label: "Brightness status arguments"
setting: "system.brightness.statusCommand"
}
CommandPreference {
label: "Brightness set arguments"
setting: "system.brightness.setCommand"
}
CommandPreference {
label: "Night Light status arguments"
setting: "system.nightLight.statusCommand"
}
CommandPreference {
label: "Night Light set arguments"
setting: "system.nightLight.setCommand"
}
GlassButton {
text: "Refresh providers"
onClicked: SystemService.refresh()
}
}
SettingNote {
warning: true
text: SystemService.error
}
}
+211
View File
@@ -0,0 +1,211 @@
pragma ComponentBehavior: Bound
import QtQuick
import QtQuick.Layouts
import Quickshell
import "../controls"
import "../../components"
import "../../services"
import "../../dock"
SettingsPage {
id: root
readonly property var options: DockModel.options
SettingNote {
warning: true
text: ApplicationsService.error
}
SettingsSection {
PreferenceToggle {
label: "Enable dock"
description: "Floating dock with pinned and running applications"
icon: "󱂩"
setting: "dock.enabled"
}
}
SettingsSection {
title: "Placement"
enabled: root.options.enabled
PreferenceChoice {
label: "Monitor"
icon: "󰍹"
setting: "dock.monitor"
choices: ["primary"].concat(Quickshell.screens.map(s => s.name))
}
PreferenceChoice {
label: "Position"
icon: "󰹑"
setting: "dock.position"
choices: ["bottom", "left", "right"]
}
PreferenceChoice {
label: "Visibility"
description: "Intelligent hides only when a window overlaps the dock"
icon: "󰈈"
setting: "dock.visibility"
choices: ["always", "auto", "intelligent"]
}
}
SettingsSection {
title: "Appearance"
enabled: root.options.enabled
PreferenceSlider {
label: "Icon size"
icon: "󰀻"
setting: "dock.iconSize"
from: 24
to: 80
step: 1
unit: " px"
}
PreferenceSlider {
label: "Spacing"
icon: "󰡏"
setting: "dock.spacing"
from: 0
to: 24
step: 1
unit: " px"
}
PreferenceSlider {
label: "Margin"
icon: "󰹑"
setting: "dock.margin"
from: 0
to: 80
step: 1
unit: " px"
}
PreferenceToggle {
label: "Magnification"
description: "Enlarge icons near the pointer"
icon: "󰍉"
setting: "dock.magnification"
}
PreferenceSlider {
label: "Magnification strength"
icon: "󰍉"
setting: "dock.magnificationStrength"
enabled: root.options.magnification
from: 0
to: 0.8
step: 0.05
}
PreferenceSlider {
label: "Animation speed"
icon: "󰔟"
setting: "dock.animationSpeed"
from: 0.25
to: 3
step: 0.05
unit: "×"
}
}
SettingsSection {
title: "Behaviour"
enabled: root.options.enabled
PreferenceToggle {
label: "Show running apps"
description: "Include unpinned applications with open windows"
icon: "󰖯"
setting: "dock.showRunningApps"
}
PreferenceToggle {
label: "Running indicators"
icon: "󰧞"
setting: "dock.runningIndicators"
}
PreferenceToggle {
label: "Tooltips"
icon: "󰍡"
setting: "dock.tooltips"
}
SettingRow {
title: "Terminal launcher"
description: "JSON argument array for Terminal=true apps: your terminal executable and its execute flag. No terminal is assumed."
icon: "󰆍"
setting: "dock.terminalCommand"
GlassTextField {
Layout.preferredWidth: 240
text: JSON.stringify(root.options.terminalCommand)
placeholderText: "[]"
onEditingFinished: {
try {
ConfigService.setValue("dock.terminalCommand", JSON.parse(text));
} catch (error) {
ApplicationsService.error = "Terminal launcher must be a JSON argument array.";
}
}
}
}
}
SettingsSection {
title: "Pinned applications"
description: "Drag pinned icons in the dock, or use the arrows below."
Repeater {
model: root.options.pinnedApps
SettingRow {
id: pinned
required property string modelData
required property int index
readonly property var entry: ApplicationsService.byId(modelData)
title: entry ? entry.name : modelData + " (unavailable)"
Image {
source: ApplicationsService.icon(pinned.entry)
sourceSize.width: 28
sourceSize.height: 28
Layout.preferredWidth: 28
Layout.preferredHeight: 28
Layout.rightMargin: 4
}
GlassIconButton {
text: "↑"
enabled: pinned.index > 0
onClicked: DockModel.reorder(pinned.modelData, root.options.pinnedApps[pinned.index - 1])
}
GlassIconButton {
text: "↓"
enabled: pinned.index < root.options.pinnedApps.length - 1
onClicked: DockModel.reorder(pinned.modelData, root.options.pinnedApps[pinned.index + 1])
}
GlassButton {
text: "Unpin"
onClicked: DockModel.unpin(pinned.modelData)
}
}
}
SettingNote {
visible: root.options.pinnedApps.length === 0
text: "No pinned applications yet."
}
}
SettingsSection {
title: "Pin an application"
GlassTextField {
id: search
placeholderText: "Find an application to pin…"
Layout.fillWidth: true
Layout.margins: 8
}
Repeater {
model: ApplicationsService.launchable.filter(e => e.name.toLowerCase().includes(search.text.toLowerCase()) && !root.options.pinnedApps.some(id => id.replace(/\.desktop$/i, "") === e.id.replace(/\.desktop$/i, ""))).slice(0, 30)
SettingRow {
id: app
required property var modelData
title: modelData.name
description: modelData.comment || ""
Image {
source: ApplicationsService.icon(app.modelData)
sourceSize.width: 28
sourceSize.height: 28
Layout.preferredWidth: 28
Layout.preferredHeight: 28
Layout.rightMargin: 4
}
GlassButton {
text: "Pin"
onClicked: DockModel.pin(app.modelData.id)
}
}
}
}
}
+37
View File
@@ -0,0 +1,37 @@
import QtQuick
import QtQuick.Layouts
import "../controls"
ColumnLayout {
spacing: 22
SettingsSection {
title: "Search"
description: "Search installed applications, or type > to find a Settings command. The launcher opens on the active monitor."
PreferenceSlider {
label: "Width"
icon: "󰹑"
setting: "launcher.width"
from: 420
to: 960
step: 20
unit: " px"
}
PreferenceSlider {
label: "Maximum results"
icon: "󰒺"
setting: "launcher.maxResults"
from: 10
to: 100
step: 1
}
PreferenceToggle {
label: "Show descriptions"
description: "Show application comments under their names"
icon: "󰦨"
setting: "launcher.showDescriptions"
}
}
SettingNote {
text: "Super+D / Super+Space: binding instructions are in docs/phase-4.md. Existing shortcuts have not been changed. Recent files are not indexed in this phase."
}
}
+118
View File
@@ -0,0 +1,118 @@
import QtQuick
import QtQuick.Layouts
import "../controls"
import "../../components"
import "../../lock"
import "../../theme"
import "../../services"
SettingsPage {
SettingsSection {
SettingRow {
title: "Lock screen"
description: "Check your password below before locking for the first time."
icon: "󰌾"
GlassButton {
objectName: "lockPreview"
text: "Preview"
onClicked: LockState.preview()
}
GlassButton {
objectName: "lockNow"
text: "Lock now"
accented: true
onClicked: LockState.lock()
}
}
SettingRow {
title: "Test password"
description: LockState.testResult === "accepted" ? "Password accepted. Unlocking will work." : LockState.testResult === "rejected" ? "Password rejected. Check it, or the PAM service below." : LockState.testResult === "error" ? "Authentication is unavailable with this PAM service." : "Runs the same authentication as the lock screen, without locking."
icon: "󰌆"
GlassTextField {
id: testPassword
objectName: "lockTestPassword"
Layout.preferredWidth: 200
echoMode: TextInput.Password
placeholderText: "Password"
enabled: !LockState.busy
onAccepted: {
LockState.test(text);
clear();
}
}
GlassButton {
text: LockState.busy ? "Checking…" : "Test"
enabled: !LockState.busy && testPassword.text !== ""
onClicked: {
LockState.test(testPassword.text);
testPassword.clear();
}
}
}
PreferenceToggle {
label: "Use for Lock buttons"
description: "Control Center and the power menu lock with this screen instead of an external locker"
icon: "󰌾"
setting: "lock.enabled"
}
}
SettingsSection {
title: "Appearance"
PreferenceChoice {
label: "Backdrop"
description: "Your wallpaper, like macOS, or a snapshot of the desktop taken when locking"
icon: "󰸉"
setting: "lock.backdrop"
choices: ["wallpaper", "screenshot"]
}
PreferenceToggle {
label: "Liquid glass"
description: "Refraction, dispersion and highlights rendered on the lock screen itself, using your HyprGlass values"
icon: "󰂵"
setting: "lock.glass"
}
PreferenceToggle {
label: "Now Playing"
icon: "󰝚"
setting: "lock.media"
}
PreferenceToggle {
label: "Power buttons"
description: "Sleep, Restart and Shut Down below the password field"
icon: "󰐥"
setting: "lock.powerButtons"
}
}
SettingsSection {
title: "Authentication"
SettingRow {
title: "PAM service"
description: "Blank uses the bundled password check (pam_unix). Or name a service in /etc/pam.d, such as hyprlock."
icon: "󰒃"
setting: "lock.pamService"
GlassTextField {
Layout.preferredWidth: 160
text: LockState.options.pamService
placeholderText: "bundled"
onEditingFinished: ConfigService.setValue("lock.pamService", text.trim())
}
}
}
SettingsSection {
title: "Keybinds and recovery"
padded: true
Text {
Layout.fillWidth: true
wrapMode: Text.Wrap
color: Theme.text
font.family: "monospace"
font.pixelSize: 11
textFormat: Text.PlainText
text: "bind = SUPER, L, exec, glassmxrph lock\n# hypridle: general { lock_cmd = glassmxrph lock }"
}
SettingNote {
Layout.leftMargin: 0
text: "If the shell ever stops while locked, Hyprland keeps the session locked. From another TTY (Ctrl+Alt+F3): hyprctl --instance 0 'keyword misc:allow_session_lock_restore 1', then start glassMxrph again and lock/unlock once."
}
}
}
+126
View File
@@ -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")
}
}
}
}
+78
View File
@@ -0,0 +1,78 @@
import QtQuick
import QtQuick.Layouts
import "../controls"
import "../../components"
import "../../services"
import "../../metrics"
SettingsPage {
SettingsSection {
padded: true
MetricsCard {
Layout.fillWidth: true
}
}
SettingsSection {
title: "Collection"
description: "GPU updates at most every 5 seconds; storage every 15 seconds. All views share one collector."
PreferenceSlider {
label: "Sampling interval"
icon: "󰔟"
setting: "metrics.interval"
from: 1
to: 30
step: 1
unit: " s"
}
SettingRow {
title: "GPU"
icon: "󰢮"
setting: "metrics.gpu"
GlassComboBox {
Layout.preferredWidth: 240
model: [
{
id: "auto",
name: "Automatic"
}
].concat(MetricsService.gpus).concat(ConfigService.data.metrics.gpu === "auto" || MetricsService.gpus.some(g => g.id === ConfigService.data.metrics.gpu) ? [] : [
{
id: ConfigService.data.metrics.gpu,
name: "Unavailable · " + ConfigService.data.metrics.gpu
}
])
textRole: "name"
valueRole: "id"
currentIndex: model.findIndex(g => g.id === ConfigService.data.metrics.gpu)
onActivated: ConfigService.setValue("metrics.gpu", currentValue)
}
}
PreferenceChoice {
label: "Network interface"
description: "Auto totals physical interfaces to avoid counting VPN/bridge traffic twice"
icon: "󰛳"
setting: "metrics.networkInterface"
choices: Array.from(new Set(["auto", ConfigService.data.metrics.networkInterface].concat((MetricsService.network.interfaces || []).map(i => i.name))))
}
SettingRow {
title: "Storage paths"
description: "JSON array, up to eight local paths. Remote filesystem paths can block the collector."
icon: "󰋊"
setting: "metrics.storagePaths"
GlassTextField {
Layout.preferredWidth: 240
text: JSON.stringify(ConfigService.data.metrics.storagePaths)
onEditingFinished: {
try {
ConfigService.setValue("metrics.storagePaths", JSON.parse(text));
} catch (e) {
text = JSON.stringify(ConfigService.data.metrics.storagePaths);
}
}
}
}
}
SettingNote {
text: "Missing sensor values are shown as —. CPU temperature is the hottest supported CPU hwmon sensor. RAM usage excludes available cache; storage free includes reserved blocks."
}
}
+81
View File
@@ -0,0 +1,81 @@
pragma ComponentBehavior: Bound
import QtQuick
import QtQuick.Layouts
import Quickshell.Networking
import "../controls"
import "../../components"
import "../../services"
SettingsPage {
Component.onCompleted: NetworkService.scanning = true
Component.onDestruction: NetworkService.scanning = false
SettingsSection {
SettingRow {
title: "Wi-Fi"
description: NetworkService.available ? NetworkService.summary : "No Wi-Fi adapter. Wired connections and advanced options are available in your network manager."
icon: "󰖩"
GlassToggle {
checked: NetworkService.enabled
enabled: NetworkService.available && NetworkService.backend.wifiHardwareEnabled
onClicked: {
NetworkService.toggle();
checked = Qt.binding(() => NetworkService.enabled);
}
Accessible.name: "Wi-Fi"
}
}
SettingRow {
title: "Advanced connections"
description: "VPN, enterprise and wired settings in your network manager"
icon: "󰒓"
GlassButton {
text: "Open…"
enabled: !SystemService.acting
onClicked: SystemService.action("manager", "network", false)
}
}
}
SettingsSection {
title: "Networks"
visible: networks.count > 0
Repeater {
id: networks
model: NetworkService.networks
SettingRow {
id: entry
required property var modelData
readonly property bool psk: [WifiSecurityType.WpaPsk, WifiSecurityType.Wpa2Psk, WifiSecurityType.Sae].includes(modelData.security)
readonly property bool supported: modelData.known || modelData.device.type === DeviceType.Wired || modelData.security === WifiSecurityType.Open || psk
title: modelData.name + " · " + modelData.device.name
description: modelData.connected ? "Connected" : modelData.stateChanging ? "Connecting…" : modelData.known ? "Saved connection" : supported ? "Available" : "Use advanced connections for this security type"
icon: modelData.connected ? "󰤨" : "󰤟"
GlassTextField {
id: password
visible: entry.psk && !entry.modelData.known && !entry.modelData.connected
echoMode: TextInput.Password
placeholderText: "Wi-Fi password"
Layout.preferredWidth: 180
inputMethodHints: Qt.ImhSensitiveData | Qt.ImhNoPredictiveText
Accessible.name: "Wi-Fi password"
}
GlassButton {
text: entry.modelData.connected ? "Disconnect" : "Connect"
accented: !entry.modelData.connected
enabled: entry.supported && !entry.modelData.stateChanging && !NetworkService.pending
onClicked: {
NetworkService.connectNetwork(entry.modelData, password.text);
password.clear();
}
}
}
}
}
SettingNote {
warning: true
text: NetworkService.error
}
SettingNote {
warning: true
text: SystemService.error
}
}
@@ -0,0 +1,15 @@
import QtQuick
import QtQuick.Layouts
import "../controls"
import "../../controlcenter/modules" as Modules
import "../../services"
SettingsPage {
Modules.Dnd {
Layout.fillWidth: true
}
SettingNote {
warning: true
text: SystemService.error
}
}
+84
View File
@@ -0,0 +1,84 @@
import QtQuick
import QtQuick.Layouts
import "../controls"
import "../../components"
import "../../core"
import "../../theme"
SettingsPage {
SettingsSection {
title: "Overlay"
description: "A glass capsule shows volume, microphone and brightness changes from any source, including existing keybinds."
PreferenceToggle {
label: "Show overlay"
description: "Hidden while Control Center is open"
icon: "󰍩"
setting: "osd.enabled"
}
PreferenceChoice {
label: "Position"
icon: "󰹑"
setting: "osd.position"
choices: ["top-right", "top-center", "bottom-center"]
}
PreferenceChoice {
label: "Animation"
description: "Slide out of the bar, drop down, fade, or shrink to nothing"
icon: "󰕮"
setting: "osd.animation"
choices: ["slide", "drop", "fade", "shrink"]
}
PreferenceSlider {
label: "Duration"
description: "Stays open while hovered or dragged"
icon: "󰔟"
setting: "osd.timeout"
from: 500
to: 5000
step: 100
unit: " ms"
}
PreferenceSlider {
label: "Step"
description: "Change per key press or scroll on the bar volume module"
icon: "󰁝"
setting: "osd.step"
from: 1
to: 20
step: 1
unit: "%"
}
SettingRow {
title: "Preview"
icon: "󰈈"
Repeater {
model: ["volume", "microphone", "brightness"]
GlassButton {
required property string modelData
objectName: "osdPreview-" + modelData
text: modelData.charAt(0).toUpperCase() + modelData.slice(1)
onClicked: if (ShellState.osdWindow)
ShellState.osdWindow.show(modelData)
}
}
}
}
SettingsSection {
title: "Keybinds"
description: "Volume changed by wpctl or pamixer already shows the overlay. These commands also change the level and work for brightness:"
padded: true
Text {
Layout.fillWidth: true
wrapMode: Text.Wrap
color: Theme.text
font.family: "monospace"
font.pixelSize: 11
textFormat: Text.PlainText
text: "bindel = , XF86AudioRaiseVolume, exec, glassmxrph osd volumeUp\nbindel = , XF86AudioLowerVolume, exec, glassmxrph osd volumeDown\nbindl = , XF86AudioMute, exec, glassmxrph osd mute\nbindl = , XF86AudioMicMute, exec, glassmxrph osd micMute\nbindel = , XF86MonBrightnessUp, exec, glassmxrph osd brightnessUp\nbindel = , XF86MonBrightnessDown, exec, glassmxrph osd brightnessDown"
}
SettingNote {
Layout.leftMargin: 0
text: "Use the full path to scripts/glassmxrph in your clone if it is not on PATH. Existing keybinds are not changed."
}
}
}
+560
View File
@@ -0,0 +1,560 @@
pragma ComponentBehavior: Bound
import QtQuick
import QtQuick.Layouts
import "../controls"
import "../../components"
import "../../services"
import "../../theme"
SettingsPage {
id: root
// Plugin awaiting removal confirmation.
property string confirmRemove: ""
// Marketplace listing awaiting install confirmation.
property string confirmInstall: ""
// Plugin whose own settings screen is open (Noctalia Settings.qml);
// "open plugin settings" from a plugin sets it.
property string openSettings: PluginService.focusedSettings
onOpenSettingsChanged: if (openSettings)
tab = "installed"
property string tab: "installed"
onTabChanged: if (tab === "browse" && PluginService.market.items.length === 0)
PluginService.browse(false)
Component.onCompleted: PluginService.refresh()
readonly property var capabilityLabels: ({
"privilege": "Uses sudo",
"package-manager": "Installs packages",
"service-management": "Manages services",
"installer": "Runs installers",
"network": "Uses the network",
"credentials": "Handles credentials",
"filesystem": "Writes files"
})
readonly property var accents: ({
"violet": "#8b5cf6",
"purple": "#a855f7",
"blue": "#3b82f6",
"sky": "#0ea5e9",
"cyan": "#06b6d4",
"teal": "#14b8a6",
"green": "#22c55e",
"lime": "#84cc16",
"yellow": "#eab308",
"amber": "#f59e0b",
"orange": "#f97316",
"red": "#ef4444",
"rose": "#f43f5e",
"pink": "#ec4899",
"slate": "#64748b"
})
SettingsSection {
title: "Plugins"
description: "Shell plugins from Omarchy (plugins.omarchy.org) and Noctalia v4. Their bar widgets sit in the bar like built-in modules and their panels open as bar drawers, styled by glassMxrph."
GlassSegmented {
objectName: "pluginTabs"
Layout.leftMargin: 14
Layout.bottomMargin: 4
model: ["installed", "browse"]
currentIndex: model.indexOf(root.tab)
onActivated: (index, value) => root.tab = value
}
SettingNote {
Layout.leftMargin: 0
text: "Plugins run inside the shell with your user's permissions, the same as in Omarchy and Noctalia: a plugin can read your files and run commands. Only install plugins from authors you trust, and use View source to check what one does."
}
}
SettingsSection {
visible: root.tab === "installed"
title: "Add a plugin"
description: "A git URL or a local folder holding an Omarchy or Noctalia v4 plugin. Repositories with several plugins install them all."
SettingRow {
title: "Source"
icon: "󰊢"
GlassTextField {
id: sourceField
objectName: "pluginSource"
Layout.preferredWidth: 300
placeholderText: "https://github.com/user/plugin"
onAccepted: installButton.clicked()
}
GlassButton {
id: installButton
objectName: "pluginInstall"
text: PluginService.busy ? "Installing…" : "Install"
accented: true
enabled: !PluginService.busy && sourceField.text.trim() !== ""
onClicked: PluginService.install(sourceField.text, "")
}
}
Text {
Layout.fillWidth: true
Layout.leftMargin: 14
Layout.bottomMargin: 8
visible: text !== ""
wrapMode: Text.Wrap
font.pixelSize: 12
color: PluginService.error ? Theme.urgent : Theme.textSecondary
text: {
if (PluginService.error)
return PluginService.error;
const r = PluginService.lastResult || {};
const parts = [];
if (r.installed && r.installed.length)
parts.push("Installed " + r.installed.join(", ") + ". Turn it on below.");
if (r.rejected && r.rejected.length)
parts.push("Skipped " + r.rejected.map(x => x.dir + " (" + x.problems.join("; ") + ")").join(", "));
return parts.join(" ");
}
}
}
SettingsSection {
visible: root.tab === "installed"
title: "Installed"
description: PluginService.plugins.length ? "Turn a plugin on to load it. Bar widgets then appear under Bar → Modules (and can go on a single screen); their options are on the module's cog." : ""
Text {
visible: PluginService.loaded && PluginService.plugins.length === 0
Layout.fillWidth: true
Layout.margins: 14
text: "No plugins installed yet."
color: Theme.textSecondary
font.pixelSize: 12
}
Repeater {
model: PluginService.plugins
SettingRow {
id: row
required property var modelData
readonly property var manifest: modelData.manifest || {}
readonly property bool enabledNow: PluginService.isEnabled(modelData.id)
readonly property bool inBar: ConfigService.data.bar.modules.some(m => m.id === "plugin:" + modelData.id)
objectName: "plugin-" + modelData.id
title: manifest.name || modelData.id
description: [manifest.description || "", [manifest.version ? "v" + manifest.version : "", manifest.author || ""].filter(x => x).join(" · ")].filter(x => x).join("\n")
icon: "󰐱"
GlassButton {
objectName: "plugin-add-" + row.modelData.id
visible: row.enabledNow && (row.manifest.kinds || []).includes("bar-widget") && !row.inBar
text: "Add to bar"
onClicked: PluginService.addToBar(row.modelData.id)
}
GlassButton {
objectName: "plugin-settings-" + row.modelData.id
visible: row.enabledNow && (row.modelData.kinds || []).includes("settings")
text: root.openSettings === row.modelData.id ? "Close settings" : "Settings"
accented: root.openSettings === row.modelData.id
onClicked: root.openSettings = root.openSettings === row.modelData.id ? "" : row.modelData.id
}
GlassButton {
objectName: "plugin-source-" + row.modelData.id
text: "View source"
onClicked: Qt.openUrlExternally(/^https?:\/\//.test(row.modelData.source) ? row.modelData.source : "file://" + row.modelData.dir)
}
GlassButton {
objectName: "plugin-remove-" + row.modelData.id
text: root.confirmRemove === row.modelData.id ? "Confirm remove" : "Remove"
accented: root.confirmRemove === row.modelData.id
onClicked: {
if (root.confirmRemove === row.modelData.id) {
root.confirmRemove = "";
PluginService.remove(row.modelData.id);
} else
root.confirmRemove = row.modelData.id;
}
}
GlassToggle {
objectName: "plugin-enable-" + row.modelData.id
checked: row.enabledNow
enabled: row.modelData.problems.length === 0
onToggled: PluginService.setEnabled(row.modelData.id, checked)
}
below: ColumnLayout {
Layout.fillWidth: true
spacing: 10
Flow {
Layout.fillWidth: true
spacing: 6
Repeater {
model: [
{
text: row.modelData.ecosystem === "noctalia" ? "Noctalia" : "Omarchy",
tone: "plain"
}
].concat((row.modelData.kinds || []).map(k => ({
text: k,
tone: "plain"
}))).concat(row.modelData.problems.map(p => ({
text: p,
tone: "bad"
}))).concat(row.modelData.unsupportedImports.map(i => ({
text: "Needs " + i + " (not supported)",
tone: "bad"
}))).concat((row.modelData.missingCommands || []).map(c => ({
text: "Missing " + c,
tone: "warn"
}))).concat(row.modelData.customColors > 0 ? [
{
text: "Custom colors · " + row.modelData.customColors,
tone: "warn"
}
] : []).concat(row.modelData.commit ? [
{
text: "Pinned " + row.modelData.commit.slice(0, 8),
tone: "plain"
}
] : [])
Rectangle {
id: badge
required property var modelData
implicitWidth: badgeText.implicitWidth + 16
implicitHeight: 22
radius: 11
color: badge.modelData.tone === "bad" ? Qt.alpha(Theme.urgent, 0.2) : badge.modelData.tone === "warn" ? Qt.alpha(Theme.urgent, 0.12) : Theme.fill
border.width: 1
border.color: Theme.hairline
Text {
id: badgeText
anchors.centerIn: parent
text: badge.modelData.text
color: badge.modelData.tone === "plain" ? Theme.textSecondary : Theme.urgent
font.pixelSize: 11
}
}
}
Text {
visible: !!row.modelData.source
text: row.modelData.source
color: Theme.textSecondary
font.pixelSize: 11
elide: Text.ElideMiddle
width: Math.min(implicitWidth, 360)
height: 22
verticalAlignment: Text.AlignVCenter
}
}
// The plugin's own settings screen (Noctalia Settings.qml), with
// its pluginApi; Save calls the plugin's saveSettings().
Rectangle {
Layout.fillWidth: true
visible: root.openSettings === row.modelData.id
implicitHeight: visible ? settingsColumn.implicitHeight + 24 : 0
radius: 12
color: Theme.fill
border.width: 1
border.color: Theme.hairline
ColumnLayout {
id: settingsColumn
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
anchors.margins: 12
spacing: 10
Loader {
id: pluginSettings
Layout.fillWidth: true
active: root.openSettings === row.modelData.id
onActiveChanged: if (active)
setSource(row.modelData.entryUrls.settings, {
pluginApi: PluginService.noctaliaApi(row.modelData.id)
})
}
RowLayout {
Layout.fillWidth: true
Item {
Layout.fillWidth: true
}
GlassButton {
text: "Cancel"
onClicked: root.openSettings = ""
}
GlassButton {
objectName: "plugin-settings-save-" + row.modelData.id
text: "Save"
accented: true
onClicked: {
PluginService.callIfPresent(pluginSettings.item, "saveSettings");
root.openSettings = "";
}
}
}
}
}
}
}
}
}
SettingNote {
visible: root.tab === "installed"
text: "Custom colors: the plugin draws some of its own colors, so those parts keep the plugin's look instead of your theme. Everything drawn with the plugin toolkit (buttons, toggles, panels, tooltips) uses the glassMxrph style."
}
SettingsSection {
visible: root.tab === "browse"
title: PluginService.marketSource === "noctalia" ? "Noctalia plugins" : "plugins.omarchy.org"
description: !PluginService.market.total ? "Community plugins." : PluginService.marketSource === "noctalia" ? PluginService.market.total + " Noctalia v4 plugins, run through glassMxrph's compatibility layer: most bar widgets, panels and settings work; some plugins rely on Noctalia parts glassMxrph does not have (the Installed tab lists them)." : PluginService.market.total + " plugins. Installs use the commit the marketplace last validated. Verified means the marketplace's automated review passed at that commit."
GlassSegmented {
objectName: "marketSource"
Layout.leftMargin: 12
Layout.topMargin: 6
model: ["omarchy", "noctalia"]
currentIndex: model.indexOf(PluginService.marketSource)
onActivated: (index, value) => PluginService.marketSource = value
}
RowLayout {
Layout.fillWidth: true
Layout.margins: 12
spacing: 8
GlassTextField {
objectName: "marketSearch"
Layout.fillWidth: true
placeholderText: "Search plugins"
text: PluginService.marketQuery
onTextChanged: PluginService.marketQuery = text
}
GlassComboBox {
objectName: "marketCategory"
Layout.preferredWidth: 160
model: ["all"].concat(PluginService.market.categories || [])
displayText: currentText === "all" ? "All categories" : currentText
currentIndex: Math.max(0, model.indexOf(PluginService.marketCategory))
onActivated: PluginService.marketCategory = currentText
}
}
RowLayout {
Layout.fillWidth: true
Layout.leftMargin: 12
Layout.rightMargin: 12
Layout.bottomMargin: 10
spacing: 10
GlassSegmented {
objectName: "marketSort"
model: ["popular", "recent", "name"]
currentIndex: model.indexOf(PluginService.marketSort)
onActivated: (index, value) => PluginService.marketSort = value
}
Item {
Layout.fillWidth: true
}
Text {
text: "Verified only"
color: Theme.text
font.pixelSize: 12
}
GlassToggle {
objectName: "marketVerified"
checked: PluginService.marketVerifiedOnly
onToggled: PluginService.marketVerifiedOnly = checked
}
}
}
SettingsSection {
visible: root.tab === "browse"
Text {
Layout.fillWidth: true
Layout.margins: 14
visible: text !== ""
wrapMode: Text.Wrap
font.pixelSize: 12
color: PluginService.marketError || PluginService.error ? Theme.urgent : Theme.textSecondary
text: PluginService.error || PluginService.marketError || ((PluginService.lastResult.installed || []).length ? "Installed " + PluginService.lastResult.installed.join(", ") + ". Turn it on under Installed." : "") || (PluginService.marketBusy && PluginService.market.items.length === 0 ? "Loading the plugin catalog…" : PluginService.market.total === 0 && !PluginService.marketBusy ? "No plugins match." : "")
}
Repeater {
model: PluginService.market.items
Item {
id: listing
required property var modelData
readonly property bool installed: PluginService.isInstalled(modelData.id)
readonly property bool confirming: root.confirmInstall === modelData.id
readonly property bool usable: modelData.installable && modelData.support !== "unsupported"
objectName: "listing-" + modelData.id
Layout.fillWidth: true
implicitHeight: card.implicitHeight + 16
ColumnLayout {
id: card
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
anchors.margins: 12
spacing: 6
RowLayout {
Layout.fillWidth: true
spacing: 12
Rectangle {
Layout.alignment: Qt.AlignTop
implicitWidth: 40
implicitHeight: 40
radius: 12
color: Qt.alpha(root.accents[listing.modelData.accent] || Theme.accent, 0.35)
border.width: 1
border.color: Qt.alpha(root.accents[listing.modelData.accent] || Theme.accent, 0.6)
Text {
anchors.centerIn: parent
text: listing.modelData.initials || listing.modelData.name.slice(0, 2).toUpperCase()
color: Theme.text
font.pixelSize: 14
font.weight: Font.DemiBold
}
}
ColumnLayout {
Layout.fillWidth: true
spacing: 2
Text {
Layout.fillWidth: true
text: listing.modelData.name
color: Theme.text
font.pixelSize: 14
font.weight: Font.DemiBold
elide: Text.ElideRight
}
Text {
Layout.fillWidth: true
text: [listing.modelData.author ? "by " + listing.modelData.author : "", listing.modelData.version ? "v" + listing.modelData.version : "", "★ " + listing.modelData.stars].filter(x => x).join(" · ")
color: Theme.textSecondary
font.pixelSize: 11
elide: Text.ElideRight
}
}
GlassButton {
objectName: "listing-page-" + listing.modelData.id
text: "Details"
onClicked: Qt.openUrlExternally(listing.modelData.page)
}
GlassButton {
objectName: "listing-install-" + listing.modelData.id
text: listing.installed ? "Installed" : !listing.usable ? "Not available" : listing.confirming ? "Cancel" : "Install"
enabled: !listing.installed && listing.usable && !PluginService.busy
onClicked: root.confirmInstall = listing.confirming ? "" : listing.modelData.id
}
}
Text {
Layout.fillWidth: true
visible: text !== ""
text: listing.modelData.description
color: Theme.text
opacity: 0.85
font.pixelSize: 12
wrapMode: Text.Wrap
maximumLineCount: 2
elide: Text.ElideRight
}
Flow {
Layout.fillWidth: true
spacing: 6
Repeater {
model: [
{
text: listing.modelData.kind,
tone: "plain"
},
{
text: listing.modelData.kind === "Noctalia v4" ? "Best effort" : listing.modelData.support === "supported" ? "Works in glassMxrph" : listing.modelData.support === "partial" ? "Partly supported" : "Not supported",
tone: listing.modelData.support === "supported" ? "good" : listing.modelData.support === "partial" ? "warn" : "bad"
},
{
text: listing.modelData.official ? "Official" : listing.modelData.kind === "Noctalia v4" ? "Community" : listing.modelData.verified ? "Verified" : "Unverified",
tone: listing.modelData.official || listing.modelData.verified ? "good" : listing.modelData.kind === "Noctalia v4" ? "plain" : "warn"
}
].concat((listing.modelData.capabilities || []).map(c => ({
text: root.capabilityLabels[c] || c,
tone: "warn"
}))).concat([
{
text: listing.modelData.category,
tone: "plain"
}
])
Rectangle {
id: tag
required property var modelData
implicitWidth: tagText.implicitWidth + 16
implicitHeight: 22
radius: 11
color: tag.modelData.tone === "good" ? Qt.alpha(Theme.accent, 0.22) : tag.modelData.tone === "bad" ? Qt.alpha(Theme.urgent, 0.2) : tag.modelData.tone === "warn" ? Qt.alpha(Theme.urgent, 0.12) : Theme.fill
border.width: 1
border.color: Theme.hairline
Text {
id: tagText
anchors.centerIn: parent
text: tag.modelData.text
color: tag.modelData.tone === "plain" ? Theme.textSecondary : tag.modelData.tone === "good" ? Theme.text : Theme.urgent
font.pixelSize: 11
}
}
}
}
// Install confirmation: exactly what will be cloned, and the trust warning.
Rectangle {
Layout.fillWidth: true
visible: listing.confirming
implicitHeight: confirmBody.implicitHeight + 20
radius: 12
color: Theme.fill
border.width: 1
border.color: Theme.hairline
ColumnLayout {
id: confirmBody
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
anchors.margins: 10
spacing: 8
Text {
Layout.fillWidth: true
wrapMode: Text.Wrap
color: Theme.text
font.pixelSize: 12
text: "Install " + listing.modelData.name + " from " + listing.modelData.repo + (listing.modelData.commit ? " at commit " + listing.modelData.commit.slice(0, 10) : " (current version)") + "? It will run inside the shell with your permissions" + ((listing.modelData.capabilities || []).length ? " and its review flagged: " + listing.modelData.capabilities.map(c => (root.capabilityLabels[c] || c).toLowerCase()).join(", ") : "") + "."
}
RowLayout {
Layout.fillWidth: true
spacing: 8
Text {
Layout.fillWidth: true
visible: listing.modelData.support === "partial"
text: listing.modelData.kind === "Noctalia v4" ? "Noctalia plugins are best effort: check its badges under Installed." : "Overlay and menu plugins keep some of their own styling."
color: Theme.textSecondary
font.pixelSize: 11
wrapMode: Text.Wrap
}
Item {
Layout.fillWidth: listing.modelData.support !== "partial"
}
GlassButton {
text: "View source"
onClicked: Qt.openUrlExternally(listing.modelData.repo)
}
GlassButton {
objectName: "listing-confirm-" + listing.modelData.id
text: PluginService.busy ? "Installing…" : "Install"
accented: true
enabled: !PluginService.busy
onClicked: {
root.confirmInstall = "";
PluginService.installListing(listing.modelData);
}
}
}
}
}
}
Rectangle {
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.right: parent.right
anchors.leftMargin: 12
anchors.rightMargin: 12
height: 1
color: Theme.hairline
}
}
}
GlassButton {
objectName: "marketMore"
Layout.alignment: Qt.AlignHCenter
Layout.margins: 10
visible: PluginService.market.items.length < PluginService.market.total
text: PluginService.marketBusy ? "Loading…" : "Show more (" + (PluginService.market.total - PluginService.market.items.length) + ")"
enabled: !PluginService.marketBusy
onClicked: PluginService.browse(true)
}
}
}
+26
View File
@@ -0,0 +1,26 @@
import QtQuick
import QtQuick.Layouts
import "../controls"
import "../../controlcenter/modules" as Modules
import "../../services"
SettingsPage {
Modules.Power {
Layout.fillWidth: true
}
Modules.Profiles {
Layout.fillWidth: true
}
SettingsSection {
title: "Lock screen"
padded: true
CommandPreference {
label: "Lock command arguments (empty = detected existing locker)"
setting: "system.power.lockCommand"
}
}
SettingNote {
warning: true
text: SystemService.error
}
}
+31
View File
@@ -0,0 +1,31 @@
pragma ComponentBehavior: Bound
import QtQuick
import QtQuick.Layouts
import "../controls"
import "../../components"
import "../../services"
import "../../theme"
ColumnLayout {
spacing: 22
SettingsSection {
title: "Tray"
PreferenceToggle { label: "System tray"; description: "Show StatusNotifier applications in the bar"; icon: "󰀻"; setting: "tray.enabled" }
PreferenceToggle { label: "Hover menus"; description: "Open application menus on hover"; icon: "󰍜"; setting: "tray.hoverMenus" }
PreferenceChoice { label: "Background"; icon: "󰆧"; setting: "tray.background"; choices: ["pill", "transparent", "icons"] }
}
SettingsSection {
title: "Sizing"
Repeater {
model: [{key:"hoverDelay",label:"Hover delay",min:100,max:2000,step:50,unit:" ms"},{key:"iconSize",label:"Icon size",min:16,max:32,step:1,unit:" px"},{key:"spacing",label:"Spacing",min:0,max:24,step:1,unit:" px"}]
SettingRow {
id: sizing
required property var modelData
title: modelData.label
setting: "tray." + modelData.key
GlassSlider { Layout.preferredWidth: 240; from: sizing.modelData.min; to: sizing.modelData.max; stepSize: sizing.modelData.step; value: TrayService.options[sizing.modelData.key]; onMoved: ConfigService.setValue("tray." + sizing.modelData.key, Math.round(value)) }
Text { text: TrayService.options[sizing.modelData.key] + sizing.modelData.unit; color: Theme.textSecondary; font.pixelSize: 12; horizontalAlignment: Text.AlignRight; Layout.preferredWidth: 52 }
}
}
}
SettingNote { text: "Right-click opens the application menu. Shift + right-click uses the native menu. Only registered tray applications appear." }
}
+211
View File
@@ -0,0 +1,211 @@
pragma ComponentBehavior: Bound
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import Quickshell
import "../controls"
import "../../components"
import "../../services"
import "../../theme"
import "../../core"
SettingsPage {
id: root
property string selected: ""
Component.onCompleted: {
WallpaperService.refresh();
WallpaperService.scan();
}
SettingsSection {
SettingRow {
title: "Wallpaper picker"
description: "Browse large wallpaper cards, search your folders and revisit recent wallpapers. The built-in backend works without Serpantinum."
icon: "󰸉"
GlassButton {
objectName: "openWallpaperPicker"
text: "Open picker"
accented: true
onClicked: ShellState.openWallpaperPicker()
}
}
}
SettingsSection {
title: "Gallery"
description: "Select an image, then apply it to the chosen monitor"
padded: true
GridView {
id: grid
objectName: "wallpaperGrid"
Layout.fillWidth: true
Layout.preferredHeight: 300
clip: true
model: WallpaperService.images
cellWidth: Math.max(140, width / Math.max(1, Math.floor(width / 170)))
cellHeight: 125
ScrollBar.vertical: ScrollBar {}
delegate: Rectangle {
id: tile
required property var modelData
readonly property bool chosen: root.selected === modelData.path
width: grid.cellWidth - 8
height: 117
radius: Math.max(8, Theme.radius * 0.55)
color: tileArea.containsMouse ? Theme.hover : Theme.surfaceVariant
border.width: chosen ? 2 : 1
border.color: chosen ? Theme.accent : Theme.border
scale: tileArea.containsMouse ? 1 + 0.02 * Theme.intensity : 1
Behavior on scale {
NumberAnimation {
duration: Theme.duration
easing.type: Easing.OutCubic
}
}
Image {
anchors {
top: parent.top
left: parent.left
right: parent.right
margins: 4
}
height: 82
source: tile.modelData.url
sourceSize: Qt.size(220, 140)
asynchronous: true
fillMode: Image.PreserveAspectCrop
clip: true
}
Text {
anchors {
bottom: parent.bottom
left: parent.left
right: parent.right
margins: 8
}
text: (WallpaperService.currentPath === tile.modelData.path ? "✓ " : "") + tile.modelData.name
color: Theme.text
elide: Text.ElideMiddle
font.pixelSize: 12
}
MouseArea {
id: tileArea
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: root.selected = tile.modelData.path
}
}
}
Text {
visible: WallpaperService.images.length === 0
text: WallpaperService.scanning ? "Loading images…" : "Add a folder containing PNG, JPEG, WebP or BMP images."
color: Theme.textSecondary
wrapMode: Text.Wrap
Layout.fillWidth: true
}
RowLayout {
Layout.fillWidth: true
Text {
text: WallpaperService.error || WallpaperService.notice
color: WallpaperService.error ? Theme.urgent : Theme.textSecondary
font.pixelSize: 11
wrapMode: Text.Wrap
Layout.fillWidth: true
}
GlassButton {
objectName: "wallpaperApply"
text: WallpaperService.busy ? "Applying…" : "Apply selected wallpaper"
accented: root.selected !== ""
enabled: root.selected !== "" && !WallpaperService.busy
onClicked: WallpaperService.apply(root.selected)
}
}
}
SettingsSection {
title: "Wallpaper folders"
description: "One absolute path per line"
padded: true
GlassTextArea {
id: folders
Layout.fillWidth: true
Layout.preferredHeight: 72
text: ConfigService.data.wallpaper.directories.join("\n")
wrapMode: TextEdit.NoWrap
selectByMouse: true
}
RowLayout {
GlassButton {
text: "Save folders"
onClicked: {
if (ConfigService.setValue("wallpaper.directories", folders.text.split("\n").map(s => s.trim()).filter(Boolean)))
WallpaperService.scan();
}
}
GlassButton {
text: "Use Pictures"
onClicked: {
ConfigService.setValue("wallpaper.directories", [Quickshell.env("HOME") + "/Pictures"]);
WallpaperService.scan();
}
}
GlassButton {
text: "Refresh"
enabled: !WallpaperService.scanning
onClicked: {
WallpaperService.refresh();
WallpaperService.scan();
}
}
}
}
SettingsSection {
title: "Output"
description: "Detected: " + WallpaperService.backend + " · Current: " + (WallpaperService.currentPath || "unknown")
SettingRow {
title: "Apply to monitor"
description: "“all” sets every connected display"
icon: "󰍹"
GlassComboBox {
Layout.preferredWidth: 240
model: ["all", "primary"].concat(Quickshell.screens.map(s => s.name))
currentIndex: Math.max(0, model.indexOf(WallpaperService.selectedMonitor))
onActivated: WallpaperService.selectedMonitor = currentText
}
}
PreferenceChoice {
label: "Backend"
description: "Tool that sets the wallpaper"
icon: "󰒓"
setting: "wallpaper.backend"
choices: ["native", "auto", "serpantinum", "awww", "custom"]
}
SettingRow {
visible: ConfigService.data.wallpaper.backend === "custom"
title: "Custom command"
description: "JSON argument array; {path} and {monitor} are substituted"
setting: "wallpaper.command"
GlassTextField {
Layout.preferredWidth: 280
text: JSON.stringify(ConfigService.data.wallpaper.command)
placeholderText: '["your-tool", "{path}", "{monitor}"]'
onEditingFinished: {
try {
ConfigService.setValue("wallpaper.command", JSON.parse(text));
} catch (error) {
WallpaperService.error = "Custom command must be a JSON argument array.";
}
}
}
}
PreferenceChoice {
label: "Palette monitor"
description: "Wallpaper used for Matugen palette generation"
icon: "󰏘"
setting: "wallpaper.paletteMonitor"
choices: ["primary"].concat(Quickshell.screens.map(s => s.name))
}
SettingNote {
visible: WallpaperService.backend === "serpantinum"
text: "Serpantinum applies its own wallpaper hooks. glassMxrph generates its palette separately without app hooks."
}
}
}
+54
View File
@@ -0,0 +1,54 @@
pragma ComponentBehavior: Bound
import QtQuick
import "../controls"
import "../../components"
import "../../widgets"
SettingsPage {
SettingsSection {
SettingRow {
title: "Edit widgets"
description: "Add, move and resize widgets on the desktop. You can also right-click any widget, or run glassmxrph widgets."
icon: "󰕰"
GlassButton {
objectName: "editWidgets"
text: "Edit desktop"
accented: true
onClicked: WidgetState.edit("")
}
}
PreferenceToggle {
label: "Snap to grid"
description: "20 px grid while editing; otherwise widgets snap to edges, centres and each other"
icon: "󰕰"
setting: "desktopWidgets.grid"
}
}
SettingsSection {
title: "Your widgets"
description: WidgetState.items.length ? "" : "No widgets yet. Choose Edit desktop to add some."
Repeater {
model: WidgetState.items
SettingRow {
id: entry
required property var modelData
readonly property var type: WidgetRegistry.type(modelData.type)
title: type ? type.name + (type.variants ? " · " + type.variants[modelData.variant] : "") : modelData.type + " (unavailable)"
description: modelData.monitor + " · " + modelData.w + "×" + modelData.h + " at " + modelData.x + ", " + modelData.y
icon: type ? type.icon : "?"
GlassButton {
text: "Edit"
onClicked: WidgetState.edit(entry.modelData.id)
}
GlassButton {
objectName: "removeWidget-" + entry.modelData.id
text: "Remove"
onClicked: WidgetState.remove(entry.modelData.id)
}
}
}
}
SettingNote {
text: "The Music widget and System Metrics pages keep their existing corner widgets; desktop widgets are independent and can be placed anywhere."
}
}