From d9ffc13825b56cb97bce4d31fca4abbdc42b0985 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 7 Aug 2025 15:38:17 +1000 Subject: controlcenter: add floating mode Closes #363 --- modules/Shortcuts.qml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'modules/Shortcuts.qml') diff --git a/modules/Shortcuts.qml b/modules/Shortcuts.qml index 628a8ce..d40097b 100644 --- a/modules/Shortcuts.qml +++ b/modules/Shortcuts.qml @@ -1,4 +1,5 @@ import qs.components.misc +import qs.modules.controlcenter import qs.services import Quickshell import Quickshell.Io @@ -8,6 +9,12 @@ Scope { property bool launcherInterrupted + CustomShortcut { + name: "controlCenter" + description: "Open control center" + onPressed: WindowFactory.create() + } + CustomShortcut { name: "showall" description: "Toggle launcher, dashboard and osd" @@ -62,4 +69,12 @@ Scope { return Object.keys(visibilities).filter(k => typeof visibilities[k] === "boolean").join("\n"); } } + + IpcHandler { + target: "controlCenter" + + function open(): void { + WindowFactory.create(); + } + } } -- cgit v1.2.3-freya