ESC to close panels

This commit is contained in:
Zacharias-Brohn
2026-02-18 12:39:05 +01:00
parent 97784f6101
commit 01e94a10ab
2 changed files with 12 additions and 2 deletions
+10
View File
@@ -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"
+2 -2
View File
@@ -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.