nixos/home/hyprland/rofi/default.nix

37 lines
1 KiB
Nix

{ pkgs, config, ... }:
let
icon-theme = config.gtk.iconTheme.name;
power-menu = "power-menu:${pkgs.rofi-power-menu}/bin/rofi-power-menu";
in {
home.packages = with pkgs; [ rofi-power-menu libqalculate ];
programs.rofi = {
enable = true;
location = "center";
pass.enable = true;
plugins = with pkgs; [ rofi-calc ];
extraConfig = {
modi = "window,run,drun,ssh,filebrowser,calc,${power-menu},combi";
combi-modi = "window,drun,ssh,filebrowser";
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-window = " 󰧨 Move ";
display-run = " 󰅴 Run ";
display-drun = " 󱓞 Launch ";
display-ssh = " 󰢹 SSH ";
display-filebrowser = " 󰝰 Files ";
display-calc = " 󰪚 Calculator ";
display-combi = " 󱗿 Combi ";
};
theme = ./theme.rasi
;
};
}