nixos/home/rofi/default.nix
Evie Litherland-Smith 81c1382843 rofi: move setting package and terminal into hyprland/default.nix
Allows setting alternate packages / terminals depending on how it's
used

Change hyprland to reference rofi.finalPackage instead of package
2024-01-31 07:21:01 +00:00

40 lines
1,018 B
Nix

{
config,
pkgs,
...
}: {
stylix.targets.rofi.enable = true;
programs.rofi = {
enable = true;
location = "center";
pass = {
enable = true;
extraConfig = ''
USERNAME_field='login'
'';
};
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 ";
};
};
}