Put the whole launcher inside the notch, the pocket-dots way

The launcher's contents (search, results, app grid, commands, clipboard
history and emoji) move into LauncherView, which the launcher window
hosts normally and the notch hosts in notch mode. In the notch it is one
more face of the same shape: the search sits in the band beside the
clock, sized to the band so it never clips, and the notch springs wider
and then down to fit whatever is below (springs as on pocket-dots, scaled
by the notch speed settings). The bar window grows tall only while it is
open, with input still masked to the shapes. The separate window, the
hand-over between them and the compact search are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-11-14 15:19:04 +01:00
1 parent 415b1b3cd6
commit 065b728af6
7 files changed
+720 -870

No files matched your search

+7 -8
View File
@@ -19,7 +19,10 @@ PanelWindow {
readonly property int outerMargin: BarDrawers.margin
// The window reaches below the bar (input is masked to the bar) so the
// HyprGlass layer edge is not on the bar's bottom edge, where drawers join.
implicitHeight: BarDrawers.bottom + BarDrawers.overhang
// While the launcher is open in the notch, the window is tall enough for
// it to grow down; input stays masked to the shapes.
readonly property bool tall: notch && (notchPill.searching || notchPill.height > BarDrawers.bottom + 1)
implicitHeight: tall ? Math.ceil(BarDrawers.bottom + notchPill.maxBodyHeight + 40) : BarDrawers.bottom + BarDrawers.overhang
// Notch mode splits the bar into a left island, the centre notch and a
// right island; only those take input.
readonly property bool notch: ShellState.notchMode
@@ -36,12 +39,8 @@ PanelWindow {
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
// Holds the keyboard for as long as the launcher is open here. The launcher
// window's own claim (overlay layer) wins while it is up; when it hands
// back, the keyboard returns here without asking again.
readonly property bool typing: notch && ShellState.notchLauncher && ScreenService.current(ShellState.launcherScreen) === screen
WlrLayershell.keyboardFocus: typing ? WlrKeyboardFocus.Exclusive : WlrKeyboardFocus.None
readonly property bool searching: notch && ShellState.notchLauncher && ScreenService.current(ShellState.launcherScreen) === screen
WlrLayershell.keyboardFocus: searching ? WlrKeyboardFocus.Exclusive : WlrKeyboardFocus.None
// The grab starts once the bar holds the keyboard; started together with
// the focus change, Hyprland clears it at once and the search closes.
property bool grabbing: false
@@ -140,6 +139,6 @@ PanelWindow {
width: implicitWidth
height: implicitHeight
// The open notch window draws over this spot on its own screen.
visible: root.notch && !(ShellState.notchWindow && ShellState.notchWindow.visible && ShellState.notchWindow.screen === root.screen) && !(ShellState.launcherWindow && ShellState.launcherWindow.covering && ShellState.launcherWindow.screen === root.screen) && !(ShellState.wallpaperWindow && ShellState.wallpaperWindow.visible && ShellState.wallpaperWindow.screen === root.screen)
visible: root.notch && !(ShellState.notchWindow && ShellState.notchWindow.visible && ShellState.notchWindow.screen === root.screen) && !(ShellState.wallpaperWindow && ShellState.wallpaperWindow.visible && ShellState.wallpaperWindow.screen === root.screen)
}
}