aboutsummaryrefslogtreecommitdiff
path: root/programs
diff options
context:
space:
mode:
Diffstat (limited to 'programs')
-rw-r--r--programs/rofi.nix72
1 files changed, 72 insertions, 0 deletions
diff --git a/programs/rofi.nix b/programs/rofi.nix
new file mode 100644
index 0000000..12c0d7b
--- /dev/null
+++ b/programs/rofi.nix
@@ -0,0 +1,72 @@
1{ config
2, pkgs
3, theme
4, ...
5}:
6
7with theme;
8let
9 inherit (config.lib.formats.rasi) mkLiteral;
10 rofi-theme = {
11 "@import" = "default";
12 "*" = {
13 active-background = mkLiteral theme.base00;
14 alternate-active-background = mkLiteral theme.base00;
15 alternate-normal-background = mkLiteral theme.base00;
16 background = mkLiteral theme.base00;
17 background-color = mkLiteral theme.base00;
18 normal-background = mkLiteral theme.base00;
19 selected-active-background = mkLiteral theme.base00;
20 selected-normal-background = mkLiteral theme.base00;
21 selected-urgent-background = mkLiteral theme.base00;
22
23 active-foreground = mkLiteral theme.base05;
24 alternate-active-foreground = mkLiteral theme.base05;
25 alternate-normal-foreground = mkLiteral theme.base05;
26 foreground = mkLiteral theme.base05;
27 normal-foreground = mkLiteral theme.base05;
28 selected-active-foreground = mkLiteral theme.base0C;
29 selected-normal-foreground = mkLiteral theme.base0C;
30 urgent-foreground = mkLiteral theme.base05;
31
32 border = mkLiteral "4px solid";
33 border-color = mkLiteral theme.base01;
34 };
35
36 inputbar.children = [ "entry" ];
37
38 element.padding = 10;
39 entry = {
40 padding = 10;
41 placeholder = "type to filter";
42 };
43 listview.border = 0;
44 scrollbar.handle-width = 0;
45 window = {
46 padding = 40;
47 width = 800;
48 height = 600;
49 };
50 };
51in
52{
53 programs.rofi = {
54 enable = true;
55 font = "Fira Code 21";
56 location = "top-left";
57 xoffset = 20;
58 yoffset = 20;
59 cycle = true;
60 theme = rofi-theme;
61 extraConfig = {
62 modes = mkLiteral "[ combi ]";
63 combi-modes = mkLiteral "[ window, run ]";
64 # window = mkLiteral ''{ display-name: "[w]"; }'';
65 # run = mkLiteral ''{ display-name: "[r]"; }'';
66 kb-clear-line = "Control+c";
67 kb-remove-word-back = "Control+w";
68 };
69 };
70}
71
72