From 01e94a10abccde490c4fd5df2d5bb6eeb1bcc049 Mon Sep 17 00:00:00 2001 From: Zacharias-Brohn Date: Wed, 18 Feb 2026 12:39:05 +0100 Subject: [PATCH] ESC to close panels --- Bar.qml | 10 ++++++++++ plans/ideas.md | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Bar.qml b/Bar.qml index e946cbd..1618704 100644 --- a/Bar.qml +++ b/Bar.qml @@ -28,6 +28,16 @@ Variants { WlrLayershell.namespace: "ZShell-Bar" WlrLayershell.exclusionMode: ExclusionMode.Ignore WlrLayershell.keyboardFocus: visibilities.launcher || visibilities.osd || visibilities.sidebar || visibilities.dashboard ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.None + + contentItem.focus: true + + contentItem.Keys.onEscapePressed: { + if ( Config.barConfig.autoHide ) + visibilities.bar = false; + visibilities.sidebar = false; + visibilities.dashboard = false; + } + PanelWindow { id: exclusionZone WlrLayershell.namespace: "ZShell-Bar-Exclusion" diff --git a/plans/ideas.md b/plans/ideas.md index 138d95e..988133c 100644 --- a/plans/ideas.md +++ b/plans/ideas.md @@ -2,10 +2,10 @@ - [x] Media showing; what song/media is playing? - [x] Brightness control for Laptops. -- [ ] Battery icon for Laptops. Broken? +- [x] Battery icon for Laptops. Broken? - [ ] Change volume for `$BROWSER` environment variable? Most general media source apart from separate music/video players. - [ ] Quick toggle for BT, WiFi (modules in the tray do this too) - [x] Auto hide unless on mouse hover. Also implement bar changes to mute/volume to show notif or show bar for a couple seconds. - [x] Maybe already possible; have keybinds to show certain menus. I do not want to touch my mouse to see notifications for example. Not everything in the bar needs this, but some would be good to have. - [ ] Pressing ESC or some obvious button to close nc. -- [ ] Another branch for development, hold off big changes so that a working bar or if there are big config changes. +- [x] Another branch for development, hold off big changes so that a working bar or if there are big config changes.