aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorDon Williams <don.e.williams@gmail.com>2026-01-07 22:46:17 -0500
committerDon Williams <don.e.williams@gmail.com>2026-01-07 22:46:17 -0500
commit9a06cade6048cf1fb3a540c889f26fd5ee12465f (patch)
tree3dac92eb62c2c64ce3188f7ff25dc72df524ee1a /config
parent8011b9da493daaf208635339787f4676a1834e50 (diff)
Fixing rofi selection color issue
On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/scripts/ThemeChanger.sh modified: config/rofi/themes/KooL_style-5.rasi
Diffstat (limited to 'config')
-rwxr-xr-xconfig/hypr/scripts/ThemeChanger.sh15
-rw-r--r--config/rofi/themes/KooL_style-5.rasi7
2 files changed, 18 insertions, 4 deletions
diff --git a/config/hypr/scripts/ThemeChanger.sh b/config/hypr/scripts/ThemeChanger.sh
index 3f55cce4..f42fb406 100755
--- a/config/hypr/scripts/ThemeChanger.sh
+++ b/config/hypr/scripts/ThemeChanger.sh
@@ -86,6 +86,21 @@ if wallust theme -- "${choice}"; then
# Small cushion before refresh to mirror wallpaper flow
sleep 0.2
+ # Normalize Rofi selection colors to use the palette's accent (color12)
+ rofi_colors="$HOME/.config/rofi/wallust/colors-rofi.rasi"
+ if [ -f "$rofi_colors" ]; then
+ accent_hex=$(sed -n 's/^\s*color12:\s*\(#[0-9A-Fa-f]\{6\}\).*/\1/p' "$rofi_colors" | head -n1)
+ [ -z "$accent_hex" ] && accent_hex=$(sed -n 's/^\s*color13:\s*\(#[0-9A-Fa-f]\{6\}\).*/\1/p' "$rofi_colors" | head -n1)
+ if [ -n "$accent_hex" ]; then
+ sed -i -E "s|^(\s*selected-normal-background:\s*).*$|\1$accent_hex;|" "$rofi_colors"
+ sed -i -E "s|^(\s*selected-active-background:\s*).*$|\1$accent_hex;|" "$rofi_colors"
+ sed -i -E "s|^(\s*selected-urgent-background:\s*).*$|\1$accent_hex;|" "$rofi_colors"
+ sed -i -E "s|^(\s*selected-normal-foreground:\s*).*$|\1#000000;|" "$rofi_colors"
+ sed -i -E "s|^(\s*selected-active-foreground:\s*).*$|\1#000000;|" "$rofi_colors"
+ sed -i -E "s|^(\s*selected-urgent-foreground:\s*).*$|\1#000000;|" "$rofi_colors"
+ fi
+ fi
+
# Refresh bars/menus after files are ready
if [ -x "$HOME/.config/hypr/scripts/Refresh.sh" ]; then
"$HOME/.config/hypr/scripts/Refresh.sh" >/dev/null 2>&1 || true
diff --git a/config/rofi/themes/KooL_style-5.rasi b/config/rofi/themes/KooL_style-5.rasi
index 4f51b972..72ec7675 100644
--- a/config/rofi/themes/KooL_style-5.rasi
+++ b/config/rofi/themes/KooL_style-5.rasi
@@ -140,10 +140,9 @@ button {
button selected {
background-color: @selected;
- text-color: @foreground;
+ text-color: @background;
border: 1px;
border-color: transparent;
-
}
/* ---- Listview ---- */
@@ -203,8 +202,8 @@ element normal.active {
element-text selected,
element selected.normal {
- background-color: @active;
- text-color: inherit;
+ background-color: @selected;
+ text-color: @background;
}
element selected.urgent {
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage