From b22e79a2c5167a82439260566100c72f53f03faf Mon Sep 17 00:00:00 2001 From: Zacharias-Brohn Date: Mon, 16 Feb 2026 19:46:26 +0100 Subject: [PATCH] osd --- Config/Osd.qml | 2 +- Drawers/Interactions.qml | 1 + Modules/Osd/Background.qml | 22 +++++++++++----------- Modules/Osd/Wrapper.qml | 8 ++++++++ 4 files changed, 21 insertions(+), 12 deletions(-) diff --git a/Config/Osd.qml b/Config/Osd.qml index ee5127d..0169403 100644 --- a/Config/Osd.qml +++ b/Config/Osd.qml @@ -2,7 +2,7 @@ import Quickshell.Io JsonObject { property bool enabled: true - property int hideDelay: 5000 + property int hideDelay: 3000 property bool enableBrightness: true property bool enableMicrophone: true property Sizes sizes: Sizes {} diff --git a/Drawers/Interactions.qml b/Drawers/Interactions.qml index 6de38c4..e3c57d8 100644 --- a/Drawers/Interactions.qml +++ b/Drawers/Interactions.qml @@ -240,6 +240,7 @@ CustomMouseArea { if (root.visibilities.osd) { // OSD became visible, immediately check if this should be shortcut mode const inOsdArea = root.inRightPanel(root.panels.osd, root.mouseX, root.mouseY); + console.log(inOsdArea); if (!inOsdArea) { root.osdShortcutActive = true; } diff --git a/Modules/Osd/Background.qml b/Modules/Osd/Background.qml index 5f127f0..e74647b 100644 --- a/Modules/Osd/Background.qml +++ b/Modules/Osd/Background.qml @@ -23,29 +23,29 @@ ShapePath { radiusY: root.rounding } PathLine { - relativeX: -(root.wrapper.width - root.roundingX * 2) + relativeX: -(root.wrapper.width - root.roundingX * 3) relativeY: 0 } PathArc { - relativeX: -root.roundingX - relativeY: root.rounding - radiusX: Math.min(root.rounding, root.wrapper.width) - radiusY: root.rounding + relativeX: -root.roundingX * 2 + relativeY: root.rounding * 2 + radiusX: Math.min(root.rounding * 2, root.wrapper.width) + radiusY: root.rounding * 2 direction: PathArc.Counterclockwise } PathLine { relativeX: 0 - relativeY: root.wrapper.height - root.rounding * 2 + relativeY: root.wrapper.height - root.rounding * 4 } PathArc { - relativeX: root.roundingX - relativeY: root.rounding - radiusX: Math.min(root.rounding, root.wrapper.width) - radiusY: root.rounding + relativeX: root.roundingX * 2 + relativeY: root.rounding * 2 + radiusX: Math.min(root.rounding * 2, root.wrapper.width) + radiusY: root.rounding * 2 direction: PathArc.Counterclockwise } PathLine { - relativeX: root.wrapper.width - root.roundingX * 2 + relativeX: root.wrapper.width - root.roundingX * 3 relativeY: 0 } PathArc { diff --git a/Modules/Osd/Wrapper.qml b/Modules/Osd/Wrapper.qml index 53f361c..0664212 100644 --- a/Modules/Osd/Wrapper.qml +++ b/Modules/Osd/Wrapper.qml @@ -105,6 +105,14 @@ Item { } } + CustomShortcut { + name: "show-osd" + + onPressed: { + root.show(); + } + } + Timer { id: timer