nixos/home/hyprland/rofi/default.nix

40 lines
1 KiB
Nix

{
pkgs,
config,
...
}: let
icon-theme = config.gtk.iconTheme.name;
in {
imports = [../gtk.nix];
home.packages = [pkgs.rofi-power-menu];
programs.rofi = {
enable = true;
location = "center";
pass.enable = true;
terminal = "wezterm-gui";
plugins = with pkgs; [
rofi-file-browser
rofi-top
];
extraConfig = {
modi = "run,drun,ssh,top,file-browser-extended,power-menu:${pkgs.rofi-power-menu}/bin/rofi-power-menu";
sort = true;
sorting-method = "fzf";
matching = "fuzzy";
icon-theme = icon-theme;
show-icons = true;
application-fallback-icon = "󰣆";
drun-display-format = "{icon} {name}";
disable-history = false;
hide-scrollbar = true;
display-run = " 󰅴 Commands ";
display-drun = " 󱓞 Programs ";
display-ssh = " 󰢹 SSH ";
display-top = " Top ";
display-file-browser-extended = " 󰝰 File Browser ";
display-power-menu = " 󰩈 Power Menu ";
};
theme = ./theme.rasi;
};
}