summaryrefslogtreecommitdiff
path: root/home/config/rofi.nix
blob: 8a6d1bbcac33f37f7105eacdfb44e3338e992e52 (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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{ pkgs, ... }:

{
  programs.rofi = {
    enable = true;

    cycle = true;
    theme = builtins.toString (pkgs.writeText "rofi-theme" ''
            /**
            * Copyright: deadguy
            * (edited by Litarvan)
            */
          
            configuration {
              display-drun:    "Activate";
              display-run:     "Execute";
              display-window:  "Window";
              show-icons:      true;
              sidebar-mode:    true;
              font: "Roboto 13";
            }

            * {
              background-color:            transparent;
              text-color:                  #b2aea8;
              selbg:                       #3949A3;
              actbg:                       #262626;
              urgbg:                       #e53935;
              winbg:                       #B3BEFF;

              selected-normal-foreground:  @winbg;
              normal-foreground:           @text-color;
              selected-normal-background:  @actbg;
              normal-background:           @background-color;

              selected-urgent-foreground:  @background-color;
              urgent-foreground:           @text-color;
              selected-urgent-background:  @urgbg;
              urgent-background:           @background-color;

              selected-active-foreground:  @winbg;
              active-foreground:           @text-color;
              selected-active-background:  @actbg;
              active-background:           @selbg;

              line-margin:                 2;
      	      line-padding:		             2;
              separator-style:             "none";
              hide-scrollbar:              "true";
              margin:                      0;
              padding:                     0;
            }

            window {
              transparency: "real";
              background-color: #000000FF;
              location:  west;
              anchor:    west;
              height:    100%;
              width:     10em;
              orientation:  horizontal;
              children:  [mainbox];
            }

            mainbox {
              spacing: 0.8em;
              children: [entry, listview ];
            }

            button { padding: 5px 2px; }

            button selected {
              background-color: @active-background;
              text-color:       @background-color;
            }

            inputbar {
              padding: 5px;
              spacing: 5px;
            }

            listview {
              spacing: 0;
              dynamic: false;
              cycle:   false;
            }

            element { padding: 10px; }

            entry {
              expand:         false;
              text-color:     @normal-foreground;
              vertical-align: 1;
              padding:        5px;
            }

            element normal.normal {
              background-color: @normal-background;
              text-color:       @normal-foreground;
            }

            element normal.urgent {
              background-color: @urgent-background;
              text-color:       @urgent-foreground;
            }

            element normal.active {
              background-color: @active-background;
              text-color:       @active-foreground;
            }

            element selected.normal {
              background-color: @selected-normal-background;
              text-color:       @selected-normal-foreground;
              border:           0 5px solid 0 0;
              border-color:      @active-background;
            }

            element selected.urgent {
              background-color: @selected-urgent-background;
              text-color:       @selected-urgent-foreground;
            }

            element selected.active {
              background-color: @selected-active-background;
              text-color:       @selected-active-foreground;
            }

            element alternate.normal {
              background-color: @normal-background;
              text-color:       @normal-foreground;
            }

            element alternate.urgent {
              background-color: @urgent-background;
              text-color:       @urgent-foreground;
            }

            element alternate.active {
              background-color: @active-background;
              text-color:       @active-foreground;
            }
          '');
  };
}