summaryrefslogtreecommitdiffstats
path: root/usecases
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2022-06-26 12:56:14 +0200
committerMinijackson <minijackson@riseup.net>2022-06-26 12:56:14 +0200
commit1ac2a2a8c227827da5c045cbcd0c95c3af227fd1 (patch)
tree90435aac9a6518b1df9933ad01a0ba4eb12f2b10 /usecases
parentdc6dc32ee8ef587fc4ee7cd381a69ca07fd1393d (diff)
downloadnixos-config-reborn-1ac2a2a8c227827da5c045cbcd0c95c3af227fd1.tar.gz
nixos-config-reborn-1ac2a2a8c227827da5c045cbcd0c95c3af227fd1.zip
desktop/rofi: use wayland package
Diffstat (limited to 'usecases')
-rw-r--r--usecases/desktop/graphical/rofi.nix195
1 files changed, 99 insertions, 96 deletions
diff --git a/usecases/desktop/graphical/rofi.nix b/usecases/desktop/graphical/rofi.nix
index 0013f5c..a4e9ab3 100644
--- a/usecases/desktop/graphical/rofi.nix
+++ b/usecases/desktop/graphical/rofi.nix
@@ -1,102 +1,105 @@
1inputs: 1_inputs: {
2 2 config,
3{ config, ... }: 3 pkgs,
4 4 ...
5{ 5}: {
6 home-manager.users.minijackson.programs.rofi = { 6 home-manager.users.minijackson.programs.rofi = {
7 enable = true; 7 enable = true;
8 8
9 package = with pkgs; rofi-wayland.override {plugins = [rofi-emoji];};
10
9 # TODO: there is a better way 11 # TODO: there is a better way
10 theme = with config.theme.colors; builtins.toFile "theme.rasi" '' 12 theme = with config.theme.colors;
11 * { 13 builtins.toFile "theme.rasi" ''
12 dominant: ${dominant}; 14 * {
13 15 dominant: ${dominant};
14 foreground: ${foreground}; 16
15 dim-foreground: ${dimForeground}; 17 foreground: ${foreground};
16 18 dim-foreground: ${dimForeground};
17 text-color: @foreground; 19
18 border-color: @dim-foreground; 20 text-color: @foreground;
19 21 border-color: @dim-foreground;
20 background-color: ${background}; 22
21 light-background: ${lightBackground}; 23 background-color: ${background};
22 } 24 light-background: ${lightBackground};
23 25 }
24 #window { 26
25 padding: 8px; 27 #window {
26 28 padding: 8px;
27 border: 1px solid; 29
28 background-color: @background; 30 border: 1px solid;
29 } 31 background-color: @background;
30 32 }
31 #mainbox { 33
32 border: 0; 34 #mainbox {
33 padding: 0; 35 border: 0;
34 } 36 padding: 0;
35 37 }
36 #inputbar { 38
37 spacing: 0; 39 #inputbar {
38 padding: 5px; 40 spacing: 0;
39 border: 0 0 1px 0; 41 padding: 5px;
40 margin: 0 0 8px 0; 42 border: 0 0 1px 0;
41 children: [ prompt, textbox-prompt-sep, entry ]; 43 margin: 0 0 8px 0;
42 } 44 children: [ prompt, textbox-prompt-sep, entry ];
43 45 }
44 #prompt { 46
45 background-color: @background; 47 #prompt {
46 text-color: @dim-foreground; 48 background-color: @background;
47 } 49 text-color: @dim-foreground;
48 50 }
49 textbox-prompt-sep { 51
50 expand: false; 52 textbox-prompt-sep {
51 str: ":"; 53 expand: false;
52 text-color: @dim-foreground; 54 str: ":";
53 margin: 0 8px 0 0; 55 text-color: @dim-foreground;
54 } 56 margin: 0 8px 0 0;
55 57 }
56 #message { 58
57 spacing: 0; 59 #message {
58 padding: 5px; 60 spacing: 0;
59 border: 0 0 1px 0; 61 padding: 5px;
60 margin: 0 0 8px 0; 62 border: 0 0 1px 0;
61 } 63 margin: 0 0 8px 0;
62 64 }
63 #listview { 65
64 spacing: 0; 66 #listview {
65 } 67 spacing: 0;
66 68 }
67 #element { 69
68 border: 0; 70 #element {
69 padding: 5px; 71 border: 0;
70 72 padding: 5px;
71 background-color: @background; 73
72 } 74 background-color: @background;
73 75 }
74 #element.selected.normal { 76
75 background-color: @dominant; 77 #element.selected.normal {
76 } 78 background-color: @dominant;
77 79 }
78 #element.urgent { 80
79 background-color: ${fadedRed}; 81 #element.urgent {
80 } 82 background-color: ${fadedRed};
81 83 }
82 #element.selected.urgent { 84
83 background-color: ${neutralRed}; 85 #element.selected.urgent {
84 } 86 background-color: ${neutralRed};
85 87 }
86 #element.active { 88
87 background-color: ${dimForeground}; 89 #element.active {
88 text-color: ${background}; 90 background-color: ${dimForeground};
89 } 91 text-color: ${background};
90 92 }
91 #element.selected.active { 93
92 background-color: ${foreground}; 94 #element.selected.active {
93 text-color: ${background}; 95 background-color: ${foreground};
94 } 96 text-color: ${background};
95 97 }
96 #scrollbar { 98
97 width: 4px; 99 #scrollbar {
98 handle-width: 8px; 100 width: 4px;
99 } 101 handle-width: 8px;
100 ''; 102 }
103 '';
101 }; 104 };
102} 105}