diff options
Diffstat (limited to 'modules/Shortcuts.qml')
| -rw-r--r-- | modules/Shortcuts.qml | 15 |
1 files changed, 15 insertions, 0 deletions
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 @@ -9,6 +10,12 @@ Scope { property bool launcherInterrupted CustomShortcut { + name: "controlCenter" + description: "Open control center" + onPressed: WindowFactory.create() + } + + CustomShortcut { name: "showall" description: "Toggle launcher, dashboard and osd" onPressed: { @@ -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(); + } + } } |