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

+158
View File
@@ -0,0 +1,158 @@
pragma ComponentBehavior: Bound
import QtQuick
import QtQuick.Layouts
import ".."
import "../../components"
import "../../services"
import "../../theme"
// Output and microphone levels; the chevron reveals device selection.
ControlCard {
id: root
property bool detailed: false
property bool expanded: detailed
RowLayout {
Layout.fillWidth: true
Text {
text: "Sound"
color: Theme.text
font.pixelSize: 13
font.weight: Font.DemiBold
Layout.fillWidth: true
}
Rectangle {
objectName: "audioDevices"
visible: !root.detailed && AudioService.available
implicitWidth: 24
implicitHeight: 24
radius: 12
color: chevron.containsMouse ? Qt.alpha(Theme.text, 0.12) : Theme.transparent
Accessible.name: root.expanded ? "Hide audio devices" : "Show audio devices"
Accessible.role: Accessible.Button
Text {
anchors.centerIn: parent
text: "›"
color: Theme.textSecondary
font.pixelSize: 18
rotation: root.expanded ? 90 : 0
Behavior on rotation {
NumberAnimation {
duration: Theme.duration
easing.type: Easing.OutCubic
}
}
}
MouseArea {
id: chevron
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: root.expanded = !root.expanded
}
}
}
Repeater {
model: [false, true]
RowLayout {
id: channel
required property bool modelData
readonly property var node: modelData ? AudioService.source : AudioService.sink
readonly property bool muted: !!node && !!node.audio && node.audio.muted
Layout.fillWidth: true
spacing: 10
CCToggle {
objectName: channel.modelData ? "microphoneMute" : "volumeMute"
size: 28
glyph: channel.modelData ? (channel.muted ? "󰍭" : "󰍬") : (channel.muted ? "󰖁" : "󰕾")
fallback: channel.muted ? "×" : (channel.modelData ? "M" : "♪")
checked: channel.muted
enabled: !!channel.node && !!channel.node.audio
onClicked: AudioService.mute(channel.modelData)
Accessible.name: channel.modelData ? "Mute microphone" : "Mute output"
}
GlassBarSlider {
objectName: channel.modelData ? "microphoneSlider" : "volumeSlider"
Layout.fillWidth: true
from: 0
to: 1
stepSize: 0.01
enabled: !!channel.node && !!channel.node.audio
value: channel.node && channel.node.audio ? channel.node.audio.volume : 0
onMoved: AudioService.volume(channel.modelData, value)
Accessible.name: channel.modelData ? "Microphone level" : "Output volume"
}
Text {
text: channel.node && channel.node.audio ? Math.round(channel.node.audio.volume * 100) + "%" : "—"
color: Theme.textSecondary
font.pixelSize: 11
horizontalAlignment: Text.AlignRight
Layout.preferredWidth: 34
}
}
}
Repeater {
model: root.expanded ? [false, true] : []
ColumnLayout {
id: devices
required property bool modelData
readonly property var nodes: modelData ? AudioService.inputs : AudioService.outputs
readonly property var current: modelData ? AudioService.source : AudioService.sink
Layout.fillWidth: true
spacing: 2
Text {
text: devices.modelData ? "INPUT" : "OUTPUT"
color: Theme.textSecondary
font.pixelSize: 10
font.weight: Font.DemiBold
font.letterSpacing: 1.1
Layout.topMargin: 4
}
Repeater {
model: devices.nodes
Rectangle {
id: device
required property var modelData
required property int index
readonly property bool selected: modelData === devices.current
Layout.fillWidth: true
implicitHeight: 30
radius: 8
color: deviceArea.containsMouse ? Qt.alpha(Theme.text, 0.08) : Theme.transparent
RowLayout {
anchors.fill: parent
anchors.leftMargin: 6
anchors.rightMargin: 6
spacing: 8
Text {
text: device.selected ? "✓" : ""
color: Theme.accent
font.pixelSize: 12
Layout.preferredWidth: 14
}
Text {
text: device.modelData.description || device.modelData.name
color: device.selected ? Theme.text : Qt.alpha(Theme.text, 0.8)
font.pixelSize: 12
font.weight: device.selected ? Font.DemiBold : Font.Normal
elide: Text.ElideRight
Layout.fillWidth: true
}
}
MouseArea {
id: deviceArea
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: AudioService.select(devices.modelData, device.index)
}
}
}
}
}
Text {
visible: !AudioService.available
text: "PipeWire is unavailable"
color: Theme.textSecondary
font.pixelSize: 11
}
}
@@ -0,0 +1,44 @@
import QtQuick
import QtQuick.Layouts
import ".."
import "../../components"
import "../../services"
import "../../theme"
ControlCard {
id: root
readonly property var info: SystemService.state.brightness || ({
available: false
})
title: "Display"
GlassBarSlider {
objectName: "brightnessSlider"
Layout.fillWidth: true
glyph: "󰃠"
fallback: "☀"
from: 1
to: 100
stepSize: 1
value: root.info.value || 1
enabled: !!root.info.available && !SystemService.acting
onPressedChanged: if (!pressed && enabled) {
SystemService.action("brightness", value, false);
value = Qt.binding(() => root.info.value || 1);
}
Keys.onReleased: event => {
if (event.key === Qt.Key_Left || event.key === Qt.Key_Right) {
SystemService.action("brightness", value, false);
value = Qt.binding(() => root.info.value || 1);
}
}
Accessible.name: "Display brightness"
}
Text {
visible: !root.info.available
text: root.info.notice || "No brightness provider"
color: Theme.textSecondary
font.pixelSize: 11
wrapMode: Text.Wrap
Layout.fillWidth: true
}
}
@@ -0,0 +1,89 @@
pragma ComponentBehavior: Bound
import QtQuick
import QtQuick.Layouts
import ".."
import "../../services"
import "../../core"
import "../../theme"
// Wi-Fi, Bluetooth and live throughput; labels open the matching Settings page.
ControlCard {
id: root
Component.onCompleted: MetricsService.consumers++
Component.onDestruction: MetricsService.consumers--
component Entry: RowLayout {
id: entry
property alias toggle: toggle
property string title
property string detail
property string page
Layout.fillWidth: true
spacing: 10
CCToggle {
id: toggle
}
Item {
Layout.fillWidth: true
implicitHeight: labels.implicitHeight
ColumnLayout {
id: labels
anchors.left: parent.left
anchors.right: parent.right
spacing: 0
Text {
text: entry.title
color: Theme.text
font.pixelSize: 12
font.weight: Font.DemiBold
elide: Text.ElideRight
Layout.fillWidth: true
}
Text {
text: entry.detail
color: Theme.textSecondary
font.pixelSize: 11
elide: Text.ElideRight
Layout.fillWidth: true
}
}
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: ShellState.openSettings(entry.page)
}
}
}
Entry {
title: "Wi-Fi"
detail: !NetworkService.available ? "No Wi-Fi adapter" : !NetworkService.backend.wifiHardwareEnabled ? "Hardware blocked" : NetworkService.enabled ? NetworkService.summary : "Off"
page: "network"
toggle.objectName: "wifiToggle"
toggle.glyph: NetworkService.enabled ? "󰖩" : "󰖪"
toggle.fallback: "W"
toggle.checked: NetworkService.available && NetworkService.enabled
toggle.enabled: NetworkService.available && NetworkService.backend.wifiHardwareEnabled
toggle.onClicked: NetworkService.toggle()
toggle.Accessible.name: "Wi-Fi"
}
Entry {
title: "Bluetooth"
detail: !BluetoothService.adapter ? "No adapter" : !BluetoothService.canToggle ? "Hardware blocked" : BluetoothService.summary
page: "bluetooth"
toggle.objectName: "bluetoothToggle"
toggle.glyph: BluetoothService.enabled ? "󰂯" : "󰂲"
toggle.fallback: "B"
toggle.checked: BluetoothService.enabled
toggle.enabled: BluetoothService.canToggle
toggle.onClicked: BluetoothService.toggle()
toggle.Accessible.name: "Bluetooth"
}
Entry {
title: "Network"
detail: "↓ " + MetricsService.bytes(MetricsService.network.download) + "/s ↑ " + MetricsService.bytes(MetricsService.network.upload) + "/s"
page: "metrics"
toggle.glyph: "󰛳"
toggle.fallback: "N"
toggle.onClicked: ShellState.openSettings("network")
toggle.Accessible.name: "Network settings"
}
}
+18
View File
@@ -0,0 +1,18 @@
import QtQuick
import ".."
import "../../services"
CCTile {
readonly property var info: SystemService.state.dnd || ({
available: false
})
objectName: "dndToggle"
title: "Do Not Disturb"
detail: !info.available ? "No SwayNC running" : info.enabled ? "On" : "Off"
glyph: "󰽥"
fallback: "☾"
// Shows acknowledged provider state; a failed request leaves it unchanged.
checked: !!info.enabled
enabled: !!info.available && !SystemService.acting
onClicked: SystemService.action("dnd", !info.enabled, false)
}
@@ -0,0 +1,11 @@
import QtQuick
import "../../media"
import "../../theme"
// Shared player and controls, styled as a Control Center module.
MediaCard {
compact: true
radius: Math.max(12, Theme.radius * 0.75)
color: Theme.fill
border.color: Theme.hairline
}
@@ -0,0 +1,10 @@
import QtQuick
import "../../metrics"
import "../../theme"
MetricsCard {
compact: true
radius: Math.max(12, Theme.radius * 0.75)
color: Theme.fill
border.color: Theme.hairline
}
@@ -0,0 +1,18 @@
import QtQuick
import ".."
import "../../services"
CCTile {
readonly property var info: SystemService.state.nightLight || ({
available: false
})
objectName: "nightLightToggle"
title: "Night Light"
detail: !info.available ? "No gamma provider" : info.enabled ? "On" : "Off"
glyph: "󰖔"
fallback: "N"
// Shows acknowledged provider state; a failed request leaves it unchanged.
checked: !!info.enabled
enabled: !!info.available && !SystemService.acting
onClicked: SystemService.action("nightLight", !info.enabled, false)
}
@@ -0,0 +1,91 @@
pragma ComponentBehavior: Bound
import QtQuick
import QtQuick.Layouts
import ".."
import "../../components"
import "../../services"
import "../../theme"
ControlCard {
id: root
Component.onDestruction: PowerService.cancel()
RowLayout {
Layout.fillWidth: true
spacing: 4
Repeater {
model: [
{
id: "lock",
glyph: "󰌾"
},
{
id: "logout",
glyph: "󰍃"
},
{
id: "suspend",
glyph: "󰤄"
},
{
id: "reboot",
glyph: "󰜉"
},
{
id: "shutdown",
glyph: "󰐥"
}
]
ColumnLayout {
id: action
required property var modelData
readonly property string label: modelData.id === "logout" ? "Log out" : modelData.id === "shutdown" ? "Shut down" : modelData.id.charAt(0).toUpperCase() + modelData.id.slice(1)
Layout.fillWidth: true
Layout.preferredWidth: 1
spacing: 4
CCToggle {
objectName: "power-" + action.modelData.id
Layout.alignment: Qt.AlignHCenter
size: 38
glyph: action.modelData.glyph
fallback: action.label.charAt(0)
checked: PowerService.pending === action.modelData.id
enabled: (action.modelData.id === "lock" && ConfigService.ready && ConfigService.data.lock.enabled) || (!!SystemService.state.power && !!SystemService.state.power[action.modelData.id] && !SystemService.acting)
onClicked: PowerService.request(action.modelData.id)
Accessible.name: action.label
}
Text {
text: action.label
color: Theme.textSecondary
font.pixelSize: 10
elide: Text.ElideRight
horizontalAlignment: Text.AlignHCenter
Layout.fillWidth: true
}
}
}
}
RowLayout {
visible: PowerService.pending !== ""
Layout.fillWidth: true
spacing: 8
Text {
text: "Confirm " + PowerService.pending + "? Unsaved work may be lost."
color: Theme.text
font.pixelSize: 12
wrapMode: Text.Wrap
Layout.fillWidth: true
}
GlassButton {
objectName: "powerCancel"
text: "Cancel"
onClicked: PowerService.cancel()
}
GlassButton {
objectName: "powerConfirm"
text: "Confirm"
accented: true
enabled: !SystemService.acting
onClicked: PowerService.confirm()
}
}
}
@@ -0,0 +1,23 @@
import QtQuick
import ".."
import "../../services"
// Clicking cycles through the available power profiles.
CCTile {
id: root
readonly property var info: SystemService.state.profiles || ({
available: false,
profiles: []
})
readonly property var profiles: info.profiles || []
readonly property string current: info.current || ""
objectName: "profileTile"
title: "Power profile"
detail: !info.available ? "Unavailable" : current ? current.charAt(0).toUpperCase() + current.slice(1).replace(/-/g, " ") : "—"
glyph: current === "power-saver" ? "󰌪" : current === "performance" ? "󰓅" : "󰾅"
fallback: "P"
checked: info.available && current !== "" && current !== "balanced"
enabled: !!info.available && profiles.length > 1 && !SystemService.acting
onClicked: SystemService.action("profile", profiles[(profiles.indexOf(current) + 1) % profiles.length], false)
Accessible.name: "Power profile: " + detail
}