From 090139faea37a45bca4c9ad27661284410f12bef Mon Sep 17 00:00:00 2001 From: Lars Müller Date: Sat, 19 Jul 2025 14:46:56 +0200 Subject: add: message to rofi theme selector --- config/hypr/scripts/RofiThemeSelector.sh | 2 +- config/rofi/config-rofi-theme.rasi | 25 +++++++++++++++++++++++-- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/config/hypr/scripts/RofiThemeSelector.sh b/config/hypr/scripts/RofiThemeSelector.sh index 8423b2fe..569b5739 100755 --- a/config/hypr/scripts/RofiThemeSelector.sh +++ b/config/hypr/scripts/RofiThemeSelector.sh @@ -125,7 +125,7 @@ while true; do rofi -dmenu -i \ -format 'i' \ -p "Rofi Theme" \ - -mesg "Preview: $(basename "$theme_to_preview_now" .rasi) | Enter: Preview | Ctrl+S: Apply & Exit | Esc: Cancel" \ + -mesg "Enter: Preview | Ctrl+S: Apply & Exit | Esc: Cancel" \ -config "$ROFI_THEME_FOR_THIS_SCRIPT" \ -selected-row "$current_selection_index" \ -kb-custom-1 "Control+s") diff --git a/config/rofi/config-rofi-theme.rasi b/config/rofi/config-rofi-theme.rasi index 652cd94c..0d77f857 100644 --- a/config/rofi/config-rofi-theme.rasi +++ b/config/rofi/config-rofi-theme.rasi @@ -11,8 +11,17 @@ window { /* ---- Mainbox ---- */ mainbox { - children: - [ "inputbar", "listview"]; + children: [ "inputbar", "message", "listview" ]; +} + +/* ---- Custombox ---- */ +/* Override custombox to ensure listview is visible for themes that use it */ +custombox { + spacing: 0px; + background-color: inherit; + text-color: inherit; + orientation: vertical; + children: [ "listview" ]; } /* ---- Entry input ---- */ @@ -42,3 +51,15 @@ element-text { margin: 0px; padding: 0px; } + +/* ---- Message ---- */ +message { + padding: 10px; + border-radius: 10px; + background-color: inherit; +} + +textbox { + text-color: inherit; + background-color: inherit; +} -- cgit v1.2.3