diff options
Diffstat (limited to 'modules/Shortcuts.qml')
| -rw-r--r-- | modules/Shortcuts.qml | 23 |
1 files changed, 23 insertions, 0 deletions
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 + } } |