2024-03-30 21:23:52 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
inputs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
programs.rofi = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig = {
|
|
|
|
terminal = "wezterm";
|
|
|
|
disable-history = false;
|
|
|
|
show-icons = true;
|
|
|
|
sidebar-mode = true;
|
|
|
|
sort = true;
|
|
|
|
drun-display-format = "{icon} {name}";
|
|
|
|
display-drun = " Run ";
|
|
|
|
modi = lib.strings.concatStringsSep "," [
|
|
|
|
"run"
|
|
|
|
"drun"
|
|
|
|
"filebrowser"
|
|
|
|
];
|
|
|
|
font = "Hack Nerd Font Mono 13";
|
|
|
|
};
|
2024-03-30 22:14:37 +01:00
|
|
|
theme = let
|
|
|
|
mkLiteral = config.lib.formats.rasi.mkLiteral;
|
|
|
|
in {
|
|
|
|
"*" = {
|
|
|
|
bg = mkLiteral "#303446FF";
|
|
|
|
fg = mkLiteral "#D9E0EEFF";
|
|
|
|
ac = mkLiteral "#8CAAEEFF";
|
|
|
|
};
|
2024-03-30 21:23:52 +01:00
|
|
|
|
2024-03-30 22:14:37 +01:00
|
|
|
"#window" = {
|
|
|
|
location = mkLiteral "center";
|
|
|
|
width = mkLiteral "50%";
|
|
|
|
};
|
2024-03-30 21:23:52 +01:00
|
|
|
|
2024-03-30 22:14:37 +01:00
|
|
|
"#prompt" = {
|
|
|
|
background-color = mkLiteral "@bg";
|
|
|
|
text-color = mkLiteral "@fg";
|
|
|
|
};
|
2024-03-30 21:23:52 +01:00
|
|
|
|
2024-03-30 22:14:37 +01:00
|
|
|
"#textbox-prompt-colon" = {
|
|
|
|
text-color = mkLiteral "@fg";
|
|
|
|
};
|
2024-03-30 21:23:52 +01:00
|
|
|
|
2024-03-30 22:14:37 +01:00
|
|
|
"#entry" = {
|
|
|
|
background-color = mkLiteral "@bg";
|
|
|
|
text-color = mkLiteral "@fg";
|
|
|
|
blink = mkLiteral "true";
|
|
|
|
};
|
2024-03-30 21:23:52 +01:00
|
|
|
|
2024-03-30 22:14:37 +01:00
|
|
|
"#inputbar" = {
|
|
|
|
children = mkLiteral "[ prompt, entry ]";
|
|
|
|
background-color = mkLiteral "@bg";
|
|
|
|
text-color = mkLiteral "@fg";
|
|
|
|
padding = mkLiteral "5px";
|
|
|
|
};
|
2024-03-30 21:23:52 +01:00
|
|
|
|
2024-03-30 22:14:37 +01:00
|
|
|
"#listview" = {
|
|
|
|
background-color = mkLiteral "@bg";
|
|
|
|
columns = mkLiteral "1";
|
|
|
|
lines = mkLiteral "5";
|
|
|
|
cycle = mkLiteral "false";
|
|
|
|
dynamic = mkLiteral "true";
|
|
|
|
};
|
2024-03-30 21:23:52 +01:00
|
|
|
|
2024-03-30 22:14:37 +01:00
|
|
|
"#mainbox" = {
|
|
|
|
background-color = mkLiteral "@bg";
|
|
|
|
border = mkLiteral "3px";
|
|
|
|
border-color = mkLiteral "@ac";
|
|
|
|
children = mkLiteral "[ inputbar, listview ]";
|
|
|
|
padding = mkLiteral "10px";
|
|
|
|
};
|
2024-03-30 21:23:52 +01:00
|
|
|
|
2024-03-30 22:14:37 +01:00
|
|
|
"#element" = {
|
|
|
|
background-color = mkLiteral "@bg";
|
|
|
|
text-color = mkLiteral "@fg";
|
|
|
|
padding = mkLiteral "5px";
|
|
|
|
};
|
2024-03-30 21:23:52 +01:00
|
|
|
|
2024-03-30 22:14:37 +01:00
|
|
|
"#element-icon" = {
|
|
|
|
background-color = mkLiteral "@bg";
|
|
|
|
text-color = mkLiteral "@fg";
|
|
|
|
size = mkLiteral "32px";
|
|
|
|
};
|
2024-03-30 21:23:52 +01:00
|
|
|
|
2024-03-30 22:14:37 +01:00
|
|
|
"#element-text" = {
|
|
|
|
background-color = mkLiteral "@bg";
|
|
|
|
text-color = mkLiteral "@fg";
|
|
|
|
padding = mkLiteral "5px";
|
|
|
|
};
|
2024-03-30 21:23:52 +01:00
|
|
|
|
2024-03-30 22:14:37 +01:00
|
|
|
"#element selected" = {
|
|
|
|
border = mkLiteral "3px";
|
|
|
|
border-color = mkLiteral "@ac";
|
|
|
|
};
|
|
|
|
};
|
2024-03-30 21:23:52 +01:00
|
|
|
};
|
|
|
|
#home.file.".config/rofi/config.rasi".text = builtins.readFile ../config-files/rofi/config.rasi;
|
|
|
|
#home.file.".local/share/rofi/themes/catppuccin-mocha.rasi".text = builtins.readFile ../config-files/rofi/catppuccin-mocha.rasi;
|
|
|
|
}
|