feat(wofi): improve wofi program selection

This commit is contained in:
2026-07-16 19:19:39 +01:00
parent 901cfeca0d
commit 5b40c331b6
2 changed files with 72 additions and 52 deletions

View File

@@ -1,8 +1,11 @@
mode=drun show=drun
allow_images=true width=600
image_size=32 height=420
term=kitty
insensitive=true
location=center location=center
no_actions=true
prompt=Search prompt=Search
allow_images=true
image_size=28
insensitive=true
hide_scroll=true
no_actions=true
gtk_dark=true

View File

@@ -1,66 +1,83 @@
/* ======================== /* ~/.config/wofi/style.css */
Wofi Lovely Theme
======================== */ @define-color base #1e1e2e;
@define-color mantle #181825;
@define-color surface #313244;
@define-color overlay #6c7086;
@define-color text #cdd6f4;
@define-color subtext #a6adc8;
@define-color blue #89b4fa;
@define-color lavndr #b4befe;
/* Window styling */
window { window {
background-color: #1e1e2e; /* Dark blue-ish background */ background-color: transparent;
border-radius: 12px; font-family: "JetBrainsMono Nerd Font", "Inter", sans-serif;
padding: 10px; font-size: 14px;
border: 1px solid #44475a;
} }
/* Entry box styling */ #outer-box {
entry { background-color: @base;
font-family: "JetBrains Mono", monospace; border: 2px solid @surface;
font-size: 16px; border-radius: 14px;
color: #f8f8f2; /* light text */ padding: 12px;
}
#input {
background-color: @mantle;
color: @text;
border: 1px solid @surface;
border-radius: 10px;
padding: 10px 14px;
margin-bottom: 10px;
caret-color: @blue;
}
#input:focus {
border-color: @blue;
}
#scroll {
margin: 0;
border: none;
}
#inner-box {
background-color: transparent;
}
#entry {
padding: 8px 10px; padding: 8px 10px;
border-radius: 8px; border-radius: 8px;
background-color: #2e2e3e; /* darker input box */
border: 1px solid #6272a4;
}
/* Selected suggestion */
row:selected {
background-color: #6272a4;
color: #f8f8f2;
}
/* Suggestions list */
row {
padding: 6px 10px;
border-radius: 6px;
margin: 2px 0; margin: 2px 0;
transition: background 0.2s ease; color: @subtext;
transition: background-color 120ms ease, color 120ms ease;
} }
/* Icon styling */ #entry:selected,
image { #entry:hover {
width: 32px; /* smaller icons */ background-color: @surface;
height: 32px; color: @text;
margin-right: 10px; outline: none;
} }
/* Scrollbar styling */ #entry:selected {
scrollbar { box-shadow: inset 3px 0 0 0 @lavndr;
background-color: #1e1e2e;
width: 6px;
border-radius: 3px;
} }
scrollbar slider { /* node type `image`, not `img` — this is the one that actually moves the icon */
background-color: #6272a4; #entry image {
border-radius: 3px; margin-right: 18px;
-gtk-icon-transform: scale(0.9);
} }
/* Hint text */ #entry #text {
entry placeholder { color: inherit;
color: #bfbfbf;
} }
/* For accessibility: highlight keyboard navigation */ #entry:selected #text {
row:focus { font-weight: 600;
outline: 2px solid #ff79c6;
} }
#unselected {
color: @subtext;
}