nixos/home/hyprland/rofi/default.nix

36 lines
1,005 B
Nix
Raw Normal View History

{
pkgs,
config,
...
}: let
icon-theme = config.gtk.iconTheme.name;
2023-05-17 17:10:18 +01:00
in {
imports = [../gtk.nix];
2023-08-03 09:47:17 +01:00
home.packages = with pkgs; [rofi-power-menu];
2023-04-03 16:53:23 +01:00
programs.rofi = {
enable = true;
2023-07-18 09:26:10 +01:00
location = "center";
2023-04-03 16:53:23 +01:00
pass.enable = true;
2023-08-03 21:36:45 +01:00
terminal = "${pkgs.wezterm}/bin/wezterm";
2023-08-03 09:47:17 +01:00
plugins = with pkgs; [rofi-file-browser];
2023-04-07 09:42:12 +01:00
extraConfig = {
2023-08-03 09:47:17 +01:00
modi = "run,drun,ssh,file-browser-extended,power-menu:${pkgs.rofi-power-menu}/bin/rofi-power-menu";
2023-07-18 10:11:38 +01:00
sort = true;
sorting-method = "fzf";
matching = "fuzzy";
icon-theme = icon-theme;
2023-04-07 09:42:12 +01:00
show-icons = true;
2023-07-18 10:11:38 +01:00
application-fallback-icon = "󰣆";
2023-04-07 09:42:12 +01:00
drun-display-format = "{icon} {name}";
disable-history = false;
hide-scrollbar = true;
display-run = " 󰅴 Commands ";
display-drun = " 󱓞 Programs ";
display-ssh = " 󰢹 SSH ";
display-file-browser-extended = " 󰝰 File Browser ";
display-power-menu = " 󰩈 Power Menu ";
2023-04-07 09:42:12 +01:00
};
theme = ./theme.rasi;
2023-04-03 16:53:23 +01:00
};
}