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;
padding: 8px 10px;
border-radius: 8px;
background-color: #2e2e3e; /* darker input box */
border: 1px solid #6272a4;
} }
/* Selected suggestion */ #input {
row:selected { background-color: @mantle;
background-color: #6272a4; color: @text;
color: #f8f8f2; border: 1px solid @surface;
border-radius: 10px;
padding: 10px 14px;
margin-bottom: 10px;
caret-color: @blue;
} }
/* Suggestions list */ #input:focus {
row { border-color: @blue;
padding: 6px 10px;
border-radius: 6px;
margin: 2px 0;
transition: background 0.2s ease;
} }
/* Icon styling */ #scroll {
image { margin: 0;
width: 32px; /* smaller icons */ border: none;
height: 32px;
margin-right: 10px;
} }
/* Scrollbar styling */ #inner-box {
scrollbar { background-color: transparent;
background-color: #1e1e2e;
width: 6px;
border-radius: 3px;
} }
scrollbar slider { #entry {
background-color: #6272a4; padding: 8px 10px;
border-radius: 3px; border-radius: 8px;
margin: 2px 0;
color: @subtext;
transition: background-color 120ms ease, color 120ms ease;
} }
/* Hint text */ #entry:selected,
entry placeholder { #entry:hover {
color: #bfbfbf; background-color: @surface;
color: @text;
outline: none;
} }
/* For accessibility: highlight keyboard navigation */ #entry:selected {
row:focus { box-shadow: inset 3px 0 0 0 @lavndr;
outline: 2px solid #ff79c6;
} }
/* node type `image`, not `img` — this is the one that actually moves the icon */
#entry image {
margin-right: 18px;
-gtk-icon-transform: scale(0.9);
}
#entry #text {
color: inherit;
}
#entry:selected #text {
font-weight: 600;
}
#unselected {
color: @subtext;
}