diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-13 23:12:23 +0800 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-13 23:12:23 +0800 |
| commit | f8eb1b69a034f4aa2833271a0c6b999cfe2a477e (patch) | |
| tree | 012e14e3e6fbb890a7fbabc70e19e9f65d160400 /modules/Shortcuts.qml | |
| parent | session: show/hide on drag (diff) | |
| download | caelestia-shell-f8eb1b69a034f4aa2833271a0c6b999cfe2a477e.tar.gz caelestia-shell-f8eb1b69a034f4aa2833271a0c6b999cfe2a477e.tar.bz2 caelestia-shell-f8eb1b69a034f4aa2833271a0c6b999cfe2a477e.zip | |
launcher: move to drawers
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 + } } |