From f8eb1b69a034f4aa2833271a0c6b999cfe2a477e Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 13 May 2025 23:12:23 +0800 Subject: launcher: move to drawers --- modules/Shortcuts.qml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'modules/Shortcuts.qml') diff --git a/modules/Shortcuts.qml b/modules/Shortcuts.qml index f97f825..f6cc9e3 100644 --- a/modules/Shortcuts.qml +++ b/modules/Shortcuts.qml @@ -3,6 +3,10 @@ import "root:/services" import Quickshell Scope { + id: root + + property bool launcherInterrupted + CustomShortcut { name: "session" description: "Toggle session menu" @@ -11,4 +15,23 @@ Scope { visibilities.session = !visibilities.session; } } + + CustomShortcut { + name: "launcher" + description: "Toggle launcher" + onPressed: root.launcherInterrupted = false + onReleased: { + if (!root.launcherInterrupted) { + const visibilities = Visibilities.getForActive(); + visibilities.launcher = !visibilities.launcher; + } + root.launcherInterrupted = false; + } + } + + CustomShortcut { + name: "launcherInterrupt" + description: "Interrupt launcher keybind" + onPressed: root.launcherInterrupted = true + } } -- cgit v1.2.3-freya