2023-08-07 09:19:09 +01:00
|
|
|
{ pkgs, config, ... }:
|
2023-10-30 17:54:50 +00:00
|
|
|
let
|
|
|
|
icon-theme = config.gtk.iconTheme.name;
|
|
|
|
power-menu = "power-menu:${pkgs.rofi-power-menu}/bin/rofi-power-menu";
|
2023-09-24 13:05:26 +01:00
|
|
|
|
2023-10-30 17:54:50 +00:00
|
|
|
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";
|
2023-10-10 20:00:04 +01:00
|
|
|
terminal = "${pkgs.alacritty}/bin/alacritty";
|
2023-09-27 06:52:08 +01:00
|
|
|
pass = {
|
|
|
|
enable = true;
|
2023-10-30 15:27:13 +00:00
|
|
|
package = pkgs.rofi-pass-wayland;
|
2023-09-27 06:52:08 +01:00
|
|
|
extraConfig = ''
|
|
|
|
USERNAME_field='login'
|
|
|
|
'';
|
|
|
|
};
|
2023-10-30 17:54:50 +00:00
|
|
|
plugins = with pkgs; [ rofi-calc ];
|
2023-04-07 09:42:12 +01:00
|
|
|
extraConfig = {
|
2023-10-30 17:54:50 +00:00
|
|
|
modi = "window,run,drun,ssh,filebrowser,calc,${power-menu},combi";
|
2023-10-30 21:30:23 +00:00
|
|
|
combi-modi = "window,drun,filebrowser,calc";
|
2023-10-30 17:54:50 +00:00
|
|
|
theme-str = "#window {border-radius: 10px;}";
|
|
|
|
sidebar-mode = true;
|
2023-07-18 10:11:38 +01:00
|
|
|
sort = true;
|
|
|
|
sorting-method = "fzf";
|
|
|
|
matching = "fuzzy";
|
2023-10-30 17:54:50 +00:00
|
|
|
icon-theme = icon-theme;
|
|
|
|
show-icons = true;
|
|
|
|
application-fallback-icon = "";
|
|
|
|
drun-display-format = "{icon} {name}";
|
2023-04-07 09:42:12 +01:00
|
|
|
disable-history = false;
|
|
|
|
hide-scrollbar = true;
|
2023-10-30 17:54:50 +00:00
|
|
|
display-window = " Move ";
|
|
|
|
display-run = " Run ";
|
|
|
|
display-drun = " Launch ";
|
|
|
|
display-ssh = " SSH ";
|
|
|
|
display-filebrowser = " Files ";
|
|
|
|
display-calc = " Calculator ";
|
|
|
|
display-combi = " Combi ";
|
2023-10-30 21:30:23 +00:00
|
|
|
drun-display-format = "{icon} {name} ({categories}) {comment}";
|
2023-04-07 09:42:12 +01:00
|
|
|
};
|
2023-04-03 16:53:23 +01:00
|
|
|
};
|
|
|
|
}
|