2024-03-30 21:23:52 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
inputs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
2024-07-18 19:17:30 +02:00
|
|
|
programs.rbw = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
email = "xqtc@tutanota.com";
|
|
|
|
lock_timeout = 300;
|
|
|
|
pinentry = pkgs.pinentry-gnome3;
|
|
|
|
};
|
|
|
|
};
|
2024-03-30 21:23:52 +01:00
|
|
|
programs.rofi = {
|
|
|
|
enable = true;
|
2024-04-14 17:57:44 +02:00
|
|
|
package = pkgs.rofi-wayland;
|
2024-07-18 19:17:30 +02:00
|
|
|
plugins = [pkgs.rofi-rbw-wayland pkgs.rofi-power-menu];
|
2024-03-30 21:23:52 +01:00
|
|
|
extraConfig = {
|
2024-09-08 14:19:42 +02:00
|
|
|
terminal = "foot";
|
2024-03-30 21:23:52 +01:00
|
|
|
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"
|
|
|
|
];
|
2024-07-02 17:17:32 +02:00
|
|
|
font = "ComicShannsMono Nerd Font Mono 13";
|
2024-03-30 21:23:52 +01:00
|
|
|
};
|
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;
|
|
|
|
}
|