nixos/home/hyprland/rofi/default.nix
Evie Litherland-Smith 9c535a4a7e Remove anyrun, back to rofi
stylix theme back to using base16 tokyo-night-dark instead of custom
defined version
2023-11-21 17:01:21 +00:00

41 lines
1.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 {
programs.rofi = {
enable = true;
package = pkgs.rofi-wayland;
location = "center";
terminal = "${pkgs.alacritty}/bin/alacritty";
pass = {
enable = true;
package = pkgs.rofi-pass-wayland;
extraConfig = ''
USERNAME_field='login'
'';
};
plugins = with pkgs; [ rofi-calc ];
extraConfig = {
modi = "window,run,drun,ssh,calc,${power-menu},combi";
combi-modi = "window,drun,ssh,calc";
sidebar-mode = true;
sort = true;
sorting-method = "fzf";
matching = "fuzzy";
icon-theme = icon-theme;
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 = " 󱓞 Launch ";
display-ssh = " 󰢹 SSH ";
display-calc = " 󰪚 Calculator ";
display-combi = " 󰛡 Combi ";
};
};
}