diff options
Diffstat (limited to 'usecases/desktop')
-rw-r--r-- | usecases/desktop/graphical/rofi.nix | 92 |
1 files changed, 31 insertions, 61 deletions
diff --git a/usecases/desktop/graphical/rofi.nix b/usecases/desktop/graphical/rofi.nix index a4e9ab3..e43d461 100644 --- a/usecases/desktop/graphical/rofi.nix +++ b/usecases/desktop/graphical/rofi.nix | |||
@@ -11,94 +11,64 @@ _inputs: { | |||
11 | # TODO: there is a better way | 11 | # TODO: there is a better way |
12 | theme = with config.theme.colors; | 12 | theme = with config.theme.colors; |
13 | builtins.toFile "theme.rasi" '' | 13 | builtins.toFile "theme.rasi" '' |
14 | configuration { | ||
15 | drun { display-name: ""; } | ||
16 | run { display-name: ""; } | ||
17 | keys { display-name: "⌨"; } | ||
18 | } | ||
19 | |||
14 | * { | 20 | * { |
15 | dominant: ${dominant}; | 21 | dominant: ${dominant}; |
16 | 22 | ||
17 | foreground: ${foreground}; | 23 | foreground: ${foreground}; |
18 | dim-foreground: ${dimForeground}; | 24 | dim-foreground: ${dimForeground}; |
19 | 25 | ||
20 | text-color: @foreground; | 26 | text-color: ${foreground}; |
21 | border-color: @dim-foreground; | 27 | border-color: ${dimForeground}; |
22 | 28 | ||
23 | background-color: ${background}; | 29 | background-color: ${background}; |
24 | light-background: ${lightBackground}; | 30 | light-background: ${lightBackground}; |
25 | } | ||
26 | |||
27 | #window { | ||
28 | padding: 8px; | ||
29 | 31 | ||
30 | border: 1px solid; | 32 | border: 0; |
31 | background-color: @background; | 33 | margin: 0; |
34 | padding: 0; | ||
35 | spacing: 0; | ||
32 | } | 36 | } |
33 | 37 | ||
34 | #mainbox { | 38 | mainbox { |
35 | border: 0; | 39 | children: [inputbar, listview]; |
36 | padding: 0; | 40 | border: 1px solid; |
41 | border-color: ${dimForeground}; | ||
37 | } | 42 | } |
38 | 43 | ||
39 | #inputbar { | 44 | inputbar { |
40 | spacing: 0; | 45 | background-color: ${dimDominant}; |
41 | padding: 5px; | 46 | children: [prompt, entry]; |
42 | border: 0 0 1px 0; | ||
43 | margin: 0 0 8px 0; | ||
44 | children: [ prompt, textbox-prompt-sep, entry ]; | ||
45 | } | 47 | } |
46 | 48 | ||
47 | #prompt { | 49 | prompt { |
48 | background-color: @background; | 50 | background-color: inherit; |
49 | text-color: @dim-foreground; | 51 | padding: 12px; |
50 | } | 52 | } |
51 | 53 | ||
52 | textbox-prompt-sep { | 54 | textbox-prompt-sep { |
53 | expand: false; | 55 | expand: false; |
54 | str: ":"; | 56 | str: ":"; |
55 | text-color: @dim-foreground; | 57 | background-color: inherit; |
56 | margin: 0 8px 0 0; | 58 | padding: 12px 0; |
57 | } | ||
58 | |||
59 | #message { | ||
60 | spacing: 0; | ||
61 | padding: 5px; | ||
62 | border: 0 0 1px 0; | ||
63 | margin: 0 0 8px 0; | ||
64 | } | ||
65 | |||
66 | #listview { | ||
67 | spacing: 0; | ||
68 | } | ||
69 | |||
70 | #element { | ||
71 | border: 0; | ||
72 | padding: 5px; | ||
73 | |||
74 | background-color: @background; | ||
75 | } | ||
76 | |||
77 | #element.selected.normal { | ||
78 | background-color: @dominant; | ||
79 | } | ||
80 | |||
81 | #element.urgent { | ||
82 | background-color: ${fadedRed}; | ||
83 | } | ||
84 | |||
85 | #element.selected.urgent { | ||
86 | background-color: ${neutralRed}; | ||
87 | } | 59 | } |
88 | 60 | ||
89 | #element.active { | 61 | entry { |
90 | background-color: ${dimForeground}; | 62 | background-color: inherit; |
91 | text-color: ${background}; | 63 | padding: 12px 0; |
92 | } | 64 | } |
93 | 65 | ||
94 | #element.selected.active { | 66 | element-text { |
95 | background-color: ${foreground}; | 67 | padding: 10px; |
96 | text-color: ${background}; | ||
97 | } | 68 | } |
98 | 69 | ||
99 | #scrollbar { | 70 | element-text selected { |
100 | width: 4px; | 71 | background-color: ${dominant}; |
101 | handle-width: 8px; | ||
102 | } | 72 | } |
103 | ''; | 73 | ''; |
104 | }; | 74 | }; |