summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorEzekiel Gonzales <141341590+notsoeazy@users.noreply.github.com>2026-02-13 10:20:35 +0800
committerGitHub <noreply@github.com>2026-02-13 13:20:35 +1100
commit93e8880842b03e251bf59d1ba316f2393c68574f (patch)
tree5ce6fb7e6836fc980c63f67a49445beabf3298d8 /modules
parentshortcuts: add special workspace cycle (#1158) (diff)
downloadcaelestia-shell-93e8880842b03e251bf59d1ba316f2393c68574f.tar.gz
caelestia-shell-93e8880842b03e251bf59d1ba316f2393c68574f.tar.bz2
caelestia-shell-93e8880842b03e251bf59d1ba316f2393c68574f.zip
shortcuts: Sidebar and Utilities shortcuts (#1160)
* shortcuts: Added shortcut to toggle the sidebar * shortcuts: added utilities shortcut to toggle utilities
Diffstat (limited to 'modules')
-rw-r--r--modules/Shortcuts.qml23
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/Shortcuts.qml b/modules/Shortcuts.qml
index a62b827..3bf20a4 100644
--- a/modules/Shortcuts.qml
+++ b/modules/Shortcuts.qml
@@ -69,6 +69,29 @@ Scope {
onPressed: root.launcherInterrupted = true
}
+
+ CustomShortcut {
+ name: "sidebar"
+ description: "Toggle sidebar"
+ onPressed: {
+ if (root.hasFullscreen)
+ return;
+ const visibilities = Visibilities.getForActive();
+ visibilities.sidebar = !visibilities.sidebar;
+ }
+ }
+
+ CustomShortcut {
+ name: "utilities"
+ description: "Toggle utilities"
+ onPressed: {
+ if (root.hasFullscreen)
+ return;
+ const visibilities = Visibilities.getForActive();
+ visibilities.utilities = !visibilities.utilities;
+ }
+ }
+
IpcHandler {
target: "drawers"