Open the launcher inside the notch in notch mode

The launcher now works like a notification there: the notch pill widens
at its own height, the clock and now playing keep the left end, and a
search field with the top matches as a row of icons fills the right.
Enter launches the highlighted match, Tab and arrows move along the row,
Escape clears then closes, and a click elsewhere closes it. The bar
window takes the keyboard while it is open. Clipboard history and emoji
still open the launcher window, which now only shows for those modes.
NotchGlance moves to components so the launcher and notch can share it
without importing each other.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-11-14 15:00:05 +01:00
1 parent bb429cb9d9
commit 5e56abd877
7 files changed
+321 -32

No files matched your search

+10
View File
@@ -1,6 +1,7 @@
import QtQuick
import QtQuick.Shapes
import Quickshell
import Quickshell.Hyprland
import Quickshell.Wayland
import "../components"
import "../notch"
@@ -33,6 +34,15 @@ PanelWindow {
exclusionMode: ExclusionMode.Normal
exclusiveZone: BarDrawers.bottom
WlrLayershell.namespace: "glassMxrph-bar"
// The notch's search takes the keyboard while it is open on this screen;
// a click anywhere else closes it.
readonly property bool searching: notch && ShellState.notchSearch && ScreenService.current(ShellState.launcherScreen) === screen
WlrLayershell.keyboardFocus: searching ? WlrKeyboardFocus.Exclusive : WlrKeyboardFocus.None
HyprlandFocusGrab {
windows: [root]
active: root.searching
onCleared: ShellState.launcherOpen = false
}
Component.onCompleted: TrayService.registerBar(root)
Component.onDestruction: TrayService.unregisterBar(root)
GlassPanel {