dotfiles/modules/home/gui/desktop/wayland/fuzzel/default.nix

58 lines
1.3 KiB
Nix
Raw Normal View History

2025-05-09 15:11:56 -05:00
{
config,
flake,
pkgs,
...
}:
let
inherit (flake.config.aesthetics.themes) currentTheme palettes fonts;
2025-06-26 02:15:04 -05:00
inherit (flake.config.people) user0;
2025-05-09 15:11:56 -05:00
user = config.home.username;
2025-06-26 02:15:04 -05:00
themeLogic = if user == user0 then currentTheme else currentTheme;
2025-05-09 15:11:56 -05:00
el = palettes.${themeLogic}.colours;
in
{
programs.fuzzel = {
enable = true;
settings = {
main = {
2025-05-12 15:38:19 -05:00
prompt = "Summon: ";
2025-05-09 15:11:56 -05:00
show-actions = "yes";
2025-05-12 15:38:19 -05:00
dpi-aware = "no";
2025-05-09 15:11:56 -05:00
icon-theme = "Papirus-Dark";
width = 25;
2025-06-26 02:15:04 -05:00
font = "${fonts.name}:weight=bold:size=${toString fonts.sizes.popups}";
2025-05-09 15:11:56 -05:00
terminal = "${pkgs.ghostty}/bin/ghostty";
layer = "overlay";
2025-05-12 15:38:19 -05:00
fields = "name";
2025-05-09 15:11:56 -05:00
};
border = {
radius = 10;
2025-05-12 15:38:19 -05:00
width = 2;
2025-05-09 15:11:56 -05:00
};
colors = {
background = "${el.base00}dd";
text = "${el.base05}ff";
match = "${el.base0E}ff";
selection = "${el.base04}ff";
selection-text = "${el.base05}ff";
selection-match = "${el.base0E}ff";
border = "${el.base0E}ff";
prompt = "${el.base07}ff";
input = "${el.base05}ff";
placeholder = "${el.base04}ff";
counter = "${el.base04}ff";
};
dmenu = {
exit-immediately-if-empty = "yes";
};
};
};
}