nixos/home/rofi/default.nix

40 lines
1,018 B
Nix
Raw Normal View History

2024-01-30 14:21:50 +00:00
{
config,
pkgs,
...
}: {
stylix.targets.rofi.enable = true;
programs.rofi = {
enable = true;
location = "center";
pass = {
enable = true;
extraConfig = ''
USERNAME_field='login'
'';
};
2024-01-30 14:21:50 +00:00
extraConfig = let
power-menu = "power-menu:${pkgs.rofi-power-menu}/bin/rofi-power-menu";
in {
modi = "window,run,drun,ssh,${power-menu},combi";
combi-modi = "window,drun,ssh";
sidebar-mode = true;
sort = true;
sorting-method = "fzf";
matching = "fuzzy";
icon-theme = config.gtk.iconTheme.name;
show-icons = true;
application-fallback-icon = "󰋙 ";
drun-display-format = "{icon} {name} ({categories})";
disable-history = false;
hide-scrollbar = true;
display-window = " 󰧨 Move ";
display-run = " 󰅴 Run ";
display-drun = " 󱓞 Apps ";
display-ssh = " 󰢹 SSH ";
display-combi = " 󰛡 Combi ";
display-power-menu = " 󰐥 Power ";
};
};
}