summaryrefslogtreecommitdiff
path: root/users/kassouni/desktop/xmonad/rofi.nix
blob: 740047be40dfca8fbfb2bf1ff04e4e61c8224138 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{ config, ... }:

let
  inherit (config.lib.formats.rasi) mkLiteral;
  colors = config.colorScheme;
in
{
  programs.rofi = {
    enable = true;
    font = "${config.theme.font.family} ${builtins.toString config.theme.font.size}";

    theme = {
      "*" = {
        background-color = mkLiteral "transparent";
        text-color = mkLiteral colors.editor.fg;
      };

      window = {
        background-color = mkLiteral colors.ui.popup.bg;
        border = mkLiteral "2px";
        border-color = mkLiteral colors.ui.line;
        border-radius = mkLiteral "8px";
        padding = mkLiteral "16px";
        width = mkLiteral "40%";
      };

      inputbar = {
        children = map mkLiteral [ "prompt" "entry" ];
        background-color = mkLiteral colors.ui.panel.bg;
        border-radius = mkLiteral "4px";
        padding = mkLiteral "8px";
        spacing = mkLiteral "8px";
      };

      prompt = {
        text-color = mkLiteral colors.common.accent.tint;
      };

      entry = {
        placeholder = "Search";
        placeholder-color = mkLiteral colors.ui.fg;
      };

      listview = {
        lines = 8;
        scrollbar = false;
        spacing = mkLiteral "2px";
        margin = mkLiteral "12px 0px 0px 0px";
      };

      element = {
        padding = mkLiteral "8px";
        border-radius = mkLiteral "4px";
        spacing = mkLiteral "8px";
      };

      "element normal urgent" = {
        text-color = mkLiteral colors.common.error;
      };

      "element normal active" = {
        text-color = mkLiteral colors.common.accent.tint;
      };

      "element selected normal" = {
        background-color = mkLiteral colors.common.accent.tint;
        text-color = mkLiteral colors.surface.base;
      };

      element-icon = {
        size = mkLiteral "1em";
      };

      element-text = {
        text-color = mkLiteral "inherit";
      };
    };
  };
}