Files
glassMxrph/quickshell/settings/pages/Osd.qml
T
mxandClaude Opus 5.5 99e64a7713 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>
2026-10-07 22:36:17 +02:00

85 lines
3.1 KiB
QML

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."
}
}
}