Change match mode to fzf and exit on focus loss.

This commit is contained in:
ediblerope 2026-05-13 13:06:50 +01:00
parent 1a8c6adc12
commit 1e90c1637b

View file

@ -252,13 +252,15 @@
# Font + colors now come from stylix.targets.fuzzel.
main = {
lines = 8;
width = 64;
horizontal-pad = 24;
vertical-pad = 24;
width = 32;
horizontal-pad = 0;
vertical-pad = 0;
inner-pad = 16;
icon-theme = "Adwaita";
terminal = "ghostty";
prompt = "\" \"";
exit-on-keyboard-focus-loss = "yes";
matching-mode = "fzf";
};
border = {
width = 1;
@ -332,7 +334,7 @@
format = "";
tooltip = false;
on-click = "${pkgs.writeShellScript "power-menu" ''
choice=$(printf " Lock\n Logout\n Reboot\n Shutdown" \
choice=$(printf " Lock\n Logout\n Reboot\n Shutdown" \
| ${pkgs.fuzzel}/bin/fuzzel --dmenu --prompt="Power: " --lines=4 --width=12)
case "$choice" in
Lock) ${pkgs.hyprlock}/bin/hyprlock ;;
@ -409,7 +411,7 @@
}
#custom-tray-toggle {
padding: 0 10px;
padding: 0 0px;
color: @base05;
}
'';