2023-06-22 17:13:46 +02:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
{
|
2023-06-16 13:23:35 +02:00
|
|
|
programs.rofi = {
|
|
|
|
enable = true;
|
|
|
|
cycle = false;
|
2023-05-25 19:08:01 +02:00
|
|
|
|
2023-06-16 13:23:35 +02:00
|
|
|
extraConfig = {
|
|
|
|
modi = "drun,filebrowser";
|
|
|
|
font = "Noto Sans CJK JP 12";
|
|
|
|
show-icons = true;
|
|
|
|
bw = 0;
|
|
|
|
display-drun = "";
|
|
|
|
display-window = "";
|
|
|
|
display-combi = "";
|
|
|
|
icon-theme = "Fluent-dark";
|
|
|
|
terminal = "kitty";
|
|
|
|
drun-match-fields = "name";
|
|
|
|
drun-display-format = "{name}";
|
|
|
|
me-select-entry = "";
|
|
|
|
me-accept-entry = "MousePrimary";
|
|
|
|
};
|
2023-05-25 19:08:01 +02:00
|
|
|
|
2023-06-25 19:23:19 +02:00
|
|
|
theme = let inherit (config.lib.formats.rasi) mkLiteral; in with config.lib.stylix.colors; lib.mkForce {
|
2023-06-16 15:40:57 +02:00
|
|
|
"*" = {
|
2023-06-21 09:08:20 +02:00
|
|
|
font = "Noto Sans CJK JP Bold 12";
|
|
|
|
background-color = mkLiteral "transparent";
|
2023-06-25 19:23:19 +02:00
|
|
|
foreground = mkLiteral "#${base05}";
|
|
|
|
text-color = mkLiteral "#${base05}";
|
2023-06-21 09:08:20 +02:00
|
|
|
padding = mkLiteral "0px";
|
|
|
|
margin = mkLiteral "0px";
|
2023-06-16 15:40:57 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
window = {
|
|
|
|
fullscreen = true;
|
|
|
|
padding = mkLiteral "1em";
|
2023-06-25 19:23:19 +02:00
|
|
|
background-color = mkLiteral "#${base00}dd";
|
2023-06-16 15:40:57 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
mainbox = {
|
|
|
|
padding = mkLiteral "8px";
|
|
|
|
};
|
|
|
|
|
|
|
|
inputbar = {
|
2023-06-25 19:23:19 +02:00
|
|
|
background-color = mkLiteral "#${base05}20";
|
2023-06-16 15:40:57 +02:00
|
|
|
|
|
|
|
margin = mkLiteral "0px calc( 50% - 230px )";
|
|
|
|
padding = mkLiteral "4px 8px";
|
|
|
|
spacing = mkLiteral "8px";
|
|
|
|
|
|
|
|
border = mkLiteral "1px";
|
|
|
|
border-radius = mkLiteral "2px";
|
2023-06-25 19:23:19 +02:00
|
|
|
border-color = mkLiteral "#${base05}40";
|
2023-06-16 15:40:57 +02:00
|
|
|
|
|
|
|
children = map mkLiteral [ "icon-search" "entry" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
prompt = {
|
|
|
|
enabled = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
icon-search = {
|
|
|
|
expand = false;
|
|
|
|
filename = "search";
|
|
|
|
vertical-align = mkLiteral "0.5";
|
|
|
|
};
|
|
|
|
|
|
|
|
entry = {
|
|
|
|
placeholder = "Search";
|
2023-06-25 19:23:19 +02:00
|
|
|
placeholder-color = mkLiteral "#${base05}20";
|
2023-06-16 15:40:57 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
listview = {
|
|
|
|
margin = mkLiteral "48px calc( 50% - 560px )";
|
|
|
|
spacing = mkLiteral "48px";
|
|
|
|
columns = 5;
|
|
|
|
fixed-columns = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
"element, element-text, element-icon" = {
|
|
|
|
cursor = mkLiteral "pointer";
|
|
|
|
};
|
|
|
|
|
|
|
|
element = {
|
|
|
|
padding = mkLiteral "8px";
|
|
|
|
spacing = mkLiteral "4px";
|
|
|
|
|
|
|
|
orientation = mkLiteral "vertical";
|
|
|
|
border-radius = mkLiteral "16px";
|
|
|
|
};
|
|
|
|
|
|
|
|
"element selected" = {
|
2023-06-26 17:39:53 +02:00
|
|
|
background-color = mkLiteral "#${base05}33";
|
2023-06-16 15:40:57 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
element-icon = {
|
|
|
|
size = mkLiteral "5em";
|
|
|
|
horizontal-align = mkLiteral "0.5";
|
|
|
|
};
|
|
|
|
|
|
|
|
element-text = {
|
|
|
|
horizontal-align = mkLiteral "0.5";
|
|
|
|
};
|
|
|
|
};
|
2023-06-16 13:23:35 +02:00
|
|
|
};
|
2023-05-16 21:35:24 +02:00
|
|
|
}
|