summaryrefslogtreecommitdiff
path: root/modules/Shortcuts.qml
diff options
context:
space:
mode:
authorTim Hämisch <haemtim@gmail.com>2025-06-13 16:08:02 +0200
committerGitHub <noreply@github.com>2025-06-14 00:08:02 +1000
commit4621c3695ed26862af70901605172bb1acaaae91 (patch)
tree5b1efa1fec3d403813f6903192c6a9ff7b74e9b7 /modules/Shortcuts.qml
parentinternal: better caching impl (diff)
downloadcaelestia-shell-4621c3695ed26862af70901605172bb1acaaae91.tar.gz
caelestia-shell-4621c3695ed26862af70901605172bb1acaaae91.tar.bz2
caelestia-shell-4621c3695ed26862af70901605172bb1acaaae91.zip
Add custom shortcut for launcher, dashboard and osd all in one (#53)
* Add custom shortcut for launcher, dashboard and osd all in one * Fix Shortcut description * shortcuts: fix showall Some fixes: - no need for the complex shortcut - fix formatting - fix unqualified access --------- Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Diffstat (limited to 'modules/Shortcuts.qml')
-rw-r--r--modules/Shortcuts.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/Shortcuts.qml b/modules/Shortcuts.qml
index bed620c..3d665ff 100644
--- a/modules/Shortcuts.qml
+++ b/modules/Shortcuts.qml
@@ -9,6 +9,15 @@ Scope {
property bool launcherInterrupted
CustomShortcut {
+ name: "showall"
+ description: "Toggle launcher, dashboard and osd"
+ onPressed: {
+ const v = Visibilities.getForActive();
+ v.launcher = v.dashboard = v.osd = !(v.launcher || v.dashboard || v.osd);
+ }
+ }
+
+ CustomShortcut {
name: "session"
description: "Toggle session menu"
onPressed: {