2024-01-30 14:21:50 +00:00
|
|
|
{
|
|
|
|
config,
|
2024-04-01 10:55:57 +01:00
|
|
|
pkgs,
|
2024-03-31 12:59:24 +01:00
|
|
|
fonts,
|
|
|
|
scheme,
|
2024-02-29 15:29:19 +00:00
|
|
|
accentColour ? "base07",
|
2024-01-30 14:21:50 +00:00
|
|
|
...
|
|
|
|
}: {
|
2024-01-28 12:01:18 +00:00
|
|
|
programs.rofi = {
|
|
|
|
enable = true;
|
2024-04-11 22:47:28 +01:00
|
|
|
package = pkgs.rofi-wayland;
|
2024-03-31 12:59:24 +01:00
|
|
|
font = fonts.monospace.name;
|
2024-01-28 12:01:18 +00:00
|
|
|
location = "center";
|
2024-04-01 10:55:57 +01:00
|
|
|
plugins = with pkgs; [rofi-emoji];
|
2024-02-05 07:33:42 +00:00
|
|
|
extraConfig = {
|
2024-04-23 07:56:36 +01:00
|
|
|
modi = "run,drun,ssh,window,emoji,combi";
|
|
|
|
combi-modi = "drun,ssh,window,emoji";
|
2024-01-30 14:21:50 +00:00
|
|
|
sidebar-mode = true;
|
|
|
|
sort = true;
|
|
|
|
sorting-method = "fzf";
|
|
|
|
matching = "fuzzy";
|
|
|
|
icon-theme = config.gtk.iconTheme.name;
|
|
|
|
show-icons = true;
|
2024-04-01 10:55:57 +01:00
|
|
|
application-fallback-icon = "application-x-addon";
|
2024-01-30 14:21:50 +00:00
|
|
|
drun-display-format = "{icon} {name} ({categories})";
|
|
|
|
disable-history = false;
|
|
|
|
hide-scrollbar = true;
|
|
|
|
display-run = " Run ";
|
|
|
|
display-drun = " Apps ";
|
|
|
|
display-ssh = " SSH ";
|
2024-04-23 07:56:36 +01:00
|
|
|
display-window = " Move ";
|
|
|
|
display-emoji = " Emoji ";
|
2024-01-30 14:21:50 +00:00
|
|
|
display-combi = " Combi ";
|
|
|
|
};
|
2024-03-09 11:44:30 +00:00
|
|
|
theme = with builtins;
|
2024-03-31 12:59:24 +01:00
|
|
|
with scheme; let
|
2024-01-31 08:30:40 +00:00
|
|
|
inherit (config.lib.formats.rasi) mkLiteral;
|
2024-03-31 12:59:24 +01:00
|
|
|
bg = mkLiteral "rgba (${base00-rgb-r}, ${base00-rgb-g}, ${base00-rgb-b}, 80%)";
|
2024-03-09 11:44:30 +00:00
|
|
|
bg2 = mkLiteral "rgba (${base01-rgb-r}, ${base01-rgb-g}, ${base01-rgb-b}, 100%)";
|
2024-01-31 08:30:40 +00:00
|
|
|
fg = mkLiteral withHashtag.base05;
|
|
|
|
fg2 = mkLiteral withHashtag.base04;
|
2024-02-20 19:31:21 +00:00
|
|
|
border = mkLiteral withHashtag.${accentColour};
|
2024-01-31 08:30:40 +00:00
|
|
|
blue = mkLiteral withHashtag.blue;
|
|
|
|
in {
|
|
|
|
"*" = {
|
|
|
|
background-color = mkLiteral "transparent";
|
|
|
|
text-color = fg;
|
2024-03-31 12:59:24 +01:00
|
|
|
font = with fonts; "${monospace.name} ${toString sizes.popups}";
|
2024-01-31 08:30:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
window = {
|
|
|
|
height = mkLiteral "75%";
|
|
|
|
width = mkLiteral "75%";
|
|
|
|
border = mkLiteral "1px";
|
|
|
|
border-color = border;
|
2024-02-21 09:26:37 +00:00
|
|
|
border-radius = mkLiteral "10px";
|
2024-01-31 08:30:40 +00:00
|
|
|
background-color = bg;
|
|
|
|
};
|
|
|
|
|
|
|
|
inputbar = {
|
|
|
|
children = map mkLiteral ["prompt" "entry"];
|
|
|
|
padding = mkLiteral "2px";
|
|
|
|
};
|
|
|
|
|
|
|
|
prompt = {
|
|
|
|
background-color = bg2;
|
|
|
|
padding = mkLiteral "6px";
|
|
|
|
text-color = blue;
|
|
|
|
border-radius = mkLiteral "10px";
|
|
|
|
margin = mkLiteral "20px 0px 0px 20px";
|
|
|
|
};
|
|
|
|
|
|
|
|
textbox-prompt-colon = {
|
|
|
|
expand = false;
|
|
|
|
str = "=";
|
|
|
|
};
|
|
|
|
|
|
|
|
entry = {
|
|
|
|
padding = mkLiteral "6px";
|
|
|
|
margin = mkLiteral "20px 0px 0px 10px";
|
|
|
|
};
|
|
|
|
|
|
|
|
listview = {
|
|
|
|
border = mkLiteral "0px 0px 0px";
|
|
|
|
padding = mkLiteral "6px 0px 0px";
|
|
|
|
margin = mkLiteral "10px 0px 0px 20px";
|
|
|
|
columns = 2;
|
|
|
|
lines = 5;
|
|
|
|
};
|
|
|
|
|
|
|
|
element = {
|
|
|
|
padding = mkLiteral "5px";
|
|
|
|
};
|
|
|
|
|
|
|
|
"element-icon" = {
|
|
|
|
size = mkLiteral "25px";
|
|
|
|
};
|
|
|
|
|
|
|
|
"element selected" = {
|
|
|
|
background-color = bg2;
|
|
|
|
text-color = blue;
|
|
|
|
border-radius = mkLiteral "10px";
|
|
|
|
};
|
|
|
|
|
|
|
|
mode-switcher = {
|
|
|
|
spacing = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
button = {
|
|
|
|
padding = mkLiteral "10px";
|
|
|
|
text-color = fg2;
|
|
|
|
border-radius = mkLiteral "10px";
|
|
|
|
vertical-align = mkLiteral "0.5";
|
|
|
|
horizontal-align = mkLiteral "0.5";
|
|
|
|
};
|
|
|
|
|
|
|
|
"button selected" = {
|
|
|
|
background-color = bg2;
|
|
|
|
text-color = blue;
|
|
|
|
};
|
|
|
|
|
|
|
|
message = {
|
|
|
|
margin = mkLiteral "2px";
|
|
|
|
padding = mkLiteral "2px";
|
|
|
|
border-radius = mkLiteral "5px";
|
|
|
|
};
|
|
|
|
|
|
|
|
textbox = {
|
|
|
|
padding = mkLiteral "6px";
|
|
|
|
margin = mkLiteral "20px 0px 0px 20px";
|
|
|
|
text-color = blue;
|
|
|
|
};
|
|
|
|
};
|
2024-01-28 12:01:18 +00:00
|
|
|
};
|
|
|
|
}
|