nixos/home/hyprland/rofi/default.nix

44 lines
1.2 KiB
Nix
Raw Normal View History

{ pkgs, config, ... }:
let
icon-theme = config.gtk.iconTheme.name;
power-menu = "power-menu:${pkgs.rofi-power-menu}/bin/rofi-power-menu";
in {
2023-04-03 16:53:23 +01:00
programs.rofi = {
enable = true;
2023-10-10 20:00:04 +01:00
package = pkgs.rofi-wayland;
2023-07-18 09:26:10 +01:00
location = "center";
terminal = "${pkgs.alacritty}/bin/alacritty";
pass = {
enable = true;
package = pkgs.rofi-pass-wayland;
extraConfig = ''
USERNAME_field='login'
'';
};
plugins = with pkgs; [ rofi-calc ];
2023-04-07 09:42:12 +01:00
extraConfig = {
modi = "window,run,drun,ssh,filebrowser,calc,${power-menu},combi";
combi-modi = "window,drun,filebrowser,calc";
sidebar-mode = true;
2023-07-18 10:11:38 +01:00
sort = true;
sorting-method = "fzf";
matching = "fuzzy";
icon-theme = icon-theme;
show-icons = true;
application-fallback-icon = "󰣆";
2023-10-30 21:31:42 +00:00
drun-display-format = "{icon} {name} ({categories})";
2023-04-07 09:42:12 +01:00
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 ";
2023-04-07 09:42:12 +01:00
};
theme = ./theme.rasi;
2023-04-03 16:53:23 +01:00
};
}