From c677049424d5fe57b4f68ef38d6d375b75efc08f Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 11 Sep 2026 09:53:54 +0200 Subject: fix: restore message widget, fullscreen power menu, and emoji grid Three regressions from collapsing five theme systems into three layouts. The layouts hardcoded `children`, which silently dropped any -mesg a script passed. rofipass lost its keybinding cheatsheet and the power menu lost its uptime line. list.rasi now lists the message widget; rofi hides it when there is no message, so it costs nothing when unused. The power menu was never a small menu. It is a deliberate fullscreen prompt with a greeting, an avatar and one row of four large glyphs, and menu.rasi flattened all of it. It gets its own layout, the one place where a prompt earns its keep. The glyphs are drawn in Inconsolata Nerd Font Mono, which was verified to contain all four; the old theme asked for `feather`, which contains none of them and was relying on fallback. The emoji picker is a dense grid of glyphs, not a list, and wasted most of a single-column window. It gets grid.rasi, sized near the launcher's icons. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01G6aeE37K4GHBsaM51yLTTq --- rofi/udt/grid.rasi | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 rofi/udt/grid.rasi (limited to 'rofi/udt/grid.rasi') diff --git a/rofi/udt/grid.rasi b/rofi/udt/grid.rasi new file mode 100644 index 0000000..c4ec128 --- /dev/null +++ b/rofi/udt/grid.rasi @@ -0,0 +1,44 @@ +/* + * udt grid layout: a searchable grid for dense, glyph-like entries. + * For the emoji picker, where a single column wastes most of the window. + * Copyright (C) 2026 Danilo M. + * Licensed under the GNU General Public License v2 only. + */ + +@import "common.rasi" + +window { + width: 680px; + anchor: center; + location: center; +} + +mainbox { + children: [ inputbar, message, listview ]; +} + +listview { + columns: 5; + lines: 6; + spacing: 6px; + fixed-height: false; +} + +/* Entries are glyphs rather than prose, so they are centered in their cell + * instead of left-aligned, and scaled up to roughly the launcher's icon size. + * + * rofi's emoji mode puts the glyph and its name on the same row, so this font + * applies to both. Noto Color Emoji carries no Latin glyphs, so fontconfig + * falls back for the name text. If the names end up looking wrong, the fix is + * to drop this font line and raise the element padding instead. */ +element { + padding: 10px; + spacing: 0; + border-radius: 6px; +} + +element-text { + font: "Noto Color Emoji 20"; + horizontal-align: 0.5; + vertical-align: 0.5; +} -- cgit v1.2.3