From 75772bed729c7bfe48a309cc39a8a52ec3ac251b Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sun, 18 Oct 2026 11:25:26 +0200 Subject: feat(rofi): screenshot menu header, as in the ssh menu The prompt is lifted onto the card as a left-aligned "Screenshot:" header with a camera glyph. confirm.rasi sets its own card children, so the power menu's confirm step keeps its centred question and no header. Co-Authored-By: Claude Opus 5.5 --- bin/qar-scrotmenu.sh | 2 +- rofi/udt/screenshot.rasi | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/bin/qar-scrotmenu.sh b/bin/qar-scrotmenu.sh index 90aae41..0f1da97 100755 --- a/bin/qar-scrotmenu.sh +++ b/bin/qar-scrotmenu.sh @@ -11,7 +11,7 @@ area="" # Variable passed to rofi options="$screen\n$area" -chosen="$(echo -e "$options" | "${rofi_command[@]}" -dmenu -selected-row 1)" +chosen="$(echo -e "$options" | "${rofi_command[@]}" -dmenu -selected-row 1 -p '󰄀 Screenshot:')" case $chosen in $screen) grimblast -w 3 -n -t png copysave active diff --git a/rofi/udt/screenshot.rasi b/rofi/udt/screenshot.rasi index 8748628..f3f8c4f 100644 --- a/rofi/udt/screenshot.rasi +++ b/rofi/udt/screenshot.rasi @@ -39,7 +39,7 @@ column { card { expand: false; orientation: vertical; - children: [ listview ]; + children: [ prompt, listview ]; spacing: 20px; padding: 24px; background-color: @base; @@ -48,6 +48,13 @@ card { border-radius: 18px; } +/* The header, as in ssh.rasi: the prompt lifted out of the inputbar. */ +prompt { + font: "Noto Sans Bold 15"; + text-color: @text; + padding: 0 4px; +} + dummy { expand: true; } -- cgit v1.2.3