aboutsummaryrefslogtreecommitdiff
path: root/modules/home/rofi.nix
blob: d0ff642eb37e39e70d322811c579976fa26baf77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{ config, ... }:

{
  programs.rofi = {
    enable = true;

    font = "monospace 12";

    theme = let
      inherit (config.lib.formats.rasi) mkLiteral;
      c = config.theme.colors;
    in {
      "@import" = "default";

      "*" = {
        background = mkLiteral "#${c.bg}";
        foreground = mkLiteral "#${c.fg}";
        foreground-alt = mkLiteral "#${c.bg3}";

        alternate-normal-background = mkLiteral "var(background)";

        selected-normal-foreground = mkLiteral "var(background)";
        selected-normal-background = mkLiteral "#${c.accent}";

        border-color = mkLiteral "var(background)";
        separatorcolor = mkLiteral "#${c.bg3}";
      };

      inputbar = {
        children = map mkLiteral [ "entry" "num-filtered-rows" "textbox-num-sep" "num-rows" ];
      };

      element = {
        children = map mkLiteral [ "element-icon" "element-text" ];
      };

      entry.placeholder = "";

      scrollbar.handle-color = mkLiteral "var(foreground-alt)";
      num-rows.text-color = mkLiteral "var(foreground-alt)";
      num-filtered-rows.text-color = mkLiteral "var(foreground-alt)";
      textbox-num-sep.text-color = mkLiteral "var(foreground-alt)";

      message.border = mkLiteral "1px solid 0px 0px";
      listview.border = mkLiteral "1px solid 0px 0px";
      sidebar.border = mkLiteral "1px solid 0px 0px";
    };
  };
}