aboutsummaryrefslogtreecommitdiff
path: root/modules/home/hyprland/chernobyl/rofi.nix
blob: 477751f4848380f9d6be5e40454dde3057713d79 (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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{ pkgs, ... }:

{
  programs.rofi = {
    enable = true;
    location = "center";
    cycle = true;
    terminal = "${pkgs.kitty}/bin/kitty";
    modes = [ "drun" "ssh" "emoji" "calc" ];
    plugins = with pkgs; [ rofi-emoji rofi-calc ];
    extraConfig = {
      lines = 20;
      columns = 1;
      font = "Fira Code 12";
      width = 40;
      show-icons = true;
      icon-theme = "Papirus";
      matching = "fuzzy";
      sorting-method = "fzf";
      drun-display-format = "{icon} {name}";
    };
    theme = ''
      * {
        bg0:  #1c182d;
        bg1:  #2b2135;
        bg2:  #3d3547;
        fg0:  #d0b6fd;
        fg1:  #b12cbf;
        border-col: #b12cbf;
      }

      window {
        background-color: @bg0;
        border: 3px solid @border-col;
        border-radius: 15px;
        padding: 20px;
      }

      mainbox {
        background-color: @bg0;
        children: [ inputbar message-box listview ];
        spacing: 15px;
      }

      inputbar {
        background-color: @bg1;
        border: 2px solid @border-col;
        border-radius: 10px;
        padding: 10px 15px;
        children: [ prompt entry ];
      }

      prompt {
        text-color: @fg1;
        margin-right: 10px;
      }

      entry {
        background-color: transparent;
        text-color: @fg0;
      }

      message-box {
        background-color: @bg1;
        border: 2px solid @border-col;
        border-radius: 10px;
        padding: 10px;
        text-color: @fg0;
      }

      listview {
        background-color: transparent;
        columns: @columns;
        spacing: 10px;
      }

      element {
        background-color: @bg1;
        border: 2px solid transparent;
        border-radius: 8px;
        padding: 10px;
        transition: all 150ms ease;
      }

      element:hover {
        background-color: @bg2;
        border: 2px solid @border-col;
      }

      element:selected {
        background-color: @fg1;
        text-color: @bg0;
        border: 2px solid @border-col;
      }

      element-icon {
        size: 24px;
        margin-right: 10px;
      }

      element-text {
        text-color: @fg0;
        vertical-align: 0.5;
      }

      element:selected element-text {
        text-color: @bg0;
      }
    '';
  };
}