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