Skip to content

Commit 5168e83

Browse files
committed
feat: rofi
1 parent 7ec6323 commit 5168e83

File tree

7 files changed

+710
-17
lines changed

7 files changed

+710
-17
lines changed

flake.nix

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@
5858
inputs.hyprland.follows = "hyprland";
5959
};
6060

61-
matugen = {
62-
url = "github:InioX/matugen?ref=v2.2.0";
63-
inputs.nixpkgs.follows = "nixpkgs";
64-
};
65-
ags = {
66-
url = "github:Aylur/ags/v1.9.0";
67-
inputs.nixpkgs.follows = "nixpkgs";
68-
};
69-
astal.url = "github:Aylur/astal";
61+
# matugen = {
62+
# url = "github:InioX/matugen?ref=v2.2.0";
63+
# inputs.nixpkgs.follows = "nixpkgs";
64+
# };
65+
# ags = {
66+
# url = "github:Aylur/ags/v1.9.0";
67+
# inputs.nixpkgs.follows = "nixpkgs";
68+
# };
69+
# astal.url = "github:Aylur/astal";
7070

7171
# ghostty = {
7272
# url = "github:ghostty-org/ghostty";

home/denrei/altair.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
common/optional/media
2020

2121
common/optional/hyprpanel
22+
common/optional/rofi
2223
];
2324

2425
home = {

home/denrei/common/optional/desktops/hyprland/default.nix

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ in
5454
# "ags -b hypr"
5555
"hyprctl setcursor Qogir 24"
5656
"dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
57+
"wl-paste --type image --watch cliphist store" # Stores only image data
58+
"wl-paste --type text --watch cliphist store" # Stores only image data
5759
# "transmission-gtk"
5860
];
5961

@@ -163,7 +165,7 @@ in
163165
[
164166
# "SUPER CTRL SHIFT, R, ${e} quit; ags -b hypr"
165167
"SUPER CTRL SHIFT, R, ${e} q; hyprpanel"
166-
# "SUPER, R, ${e} -t launcher"
168+
"SUPER, R, exec, rofi -show drun"
167169
# "SUPER, Tab, ${e} -t overview"
168170
"SUPER,BACKSPACE,${e} t powermenu"
169171
# ",XF86PowerOff, ${e} -r 'powermenu.shutdown()'"
@@ -172,8 +174,10 @@ in
172174
# ",Print, ${e} -r 'recorder.screenshot()'"
173175
# "SHIFT,Print, ${e} -r 'recorder.screenshot(true)'"
174176
# "SUPER, V, ${e} -r 'launcher.open(\":ch \")'"
177+
"SUPER, V, exec, rofi -modi clipboard:${pkgs.cliphist}/bin/cliphist-rofi-img -show clipboard -show-icons"
175178
# "SUPER, period, ${e} -r 'launcher.open(\":em \")'"
176-
"SUPER, period, exec, smile"
179+
# "SUPER, period, exec, smile"
180+
"SUPER, period, exec, rofi -show emoji"
177181
"SUPER, Return, exec, wezterm -e"
178182
"SUPER, W, exec, zen"
179183
"SUPER, T, exec, wezterm"

home/denrei/common/optional/hyprpanel/default.nix

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ in
1818
{
1919
imports = [ inputs.hyprpanel.homeManagerModules.hyprpanel ];
2020

21-
home.packages = with pkgs; [
22-
rofi
23-
];
24-
2521
programs.hyprpanel = {
2622
overlay.enable = true;
2723

@@ -116,7 +112,7 @@ in
116112
menus.dashboard.shortcuts.left.shortcut2.command = "spotify";
117113
menus.dashboard.shortcuts.left.shortcut2.icon = "󰓇";
118114
menus.dashboard.shortcuts.left.shortcut2.tooltip = "Spotify";
119-
menus.dashboard.shortcuts.left.shortcut3.command = "vencord";
115+
menus.dashboard.shortcuts.left.shortcut3.command = "vesktop";
120116
menus.dashboard.shortcuts.left.shortcut3.icon = "";
121117
menus.dashboard.shortcuts.left.shortcut3.tooltip = "Discord";
122118
menus.dashboard.shortcuts.left.shortcut4.command = "rofi -show drun";
@@ -131,7 +127,7 @@ in
131127

132128
theme.font = {
133129
name = "Ubuntu Nerd Font Propo";
134-
size = "1.0rem";
130+
size = "12px";
135131
};
136132
};
137133
};
Lines changed: 252 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,252 @@
1+
configuration {
2+
/* modes: "window,drun,run,ssh";*/
3+
modes: [window,run,drun,emoji,calc,combi,ssh];
4+
combi-modes: [ window, drun, run, calc, emoji, combi, ssh ];
5+
display-drun: " Apps";
6+
display-run: " Run";
7+
display-filebrowser: " Files";
8+
display-window: " Windows";
9+
display-clipboard: "󰅇 Clipboard";
10+
drun-display-format: "{name}";
11+
window-format: "{w} · {c} · {t}";
12+
font: "Ubuntu Nerd Font Propo 12";
13+
show-icons: true;
14+
icon-theme: "MoreWaita";
15+
location: 2;
16+
/* fixed-num-lines: true;*/
17+
/* show-icons: false;*/
18+
/* preview-cmd: ;*/
19+
/* terminal: "rofi-sensible-terminal";*/
20+
/* ssh-client: "ssh";*/
21+
/* ssh-command: "{terminal} -e {ssh-client} {host} [-p {port}]";*/
22+
/* run-command: "{cmd}";*/
23+
/* run-list-command: "";*/
24+
/* run-shell-command: "{terminal} -e {cmd}";*/
25+
/* window-command: "wmctrl -i -R {window}";*/
26+
/* window-match-fields: "all";*/
27+
/* icon-theme: ;*/
28+
/* drun-match-fields: "name,generic,exec,categories,keywords";*/
29+
/* drun-categories: ;*/
30+
/* drun-show-actions: false;*/
31+
/* drun-display-format: "{name} [<span weight='light' size='small'><i>({generic})</i></span>]";*/
32+
/* drun-url-launcher: "xdg-open";*/
33+
/* disable-history: false;*/
34+
/* ignored-prefixes: "";*/
35+
/* sort: false;*/
36+
/* sorting-method: "normal";*/
37+
/* case-sensitive: false;*/
38+
/* cycle: true;*/
39+
/* sidebar-mode: false;*/
40+
/* hover-select: false;*/
41+
/* eh: 1;*/
42+
/* auto-select: false;*/
43+
/* parse-hosts: false;*/
44+
/* parse-known-hosts: true;*/
45+
/* combi-modes: "window,run";*/
46+
/* matching: "normal";*/
47+
/* tokenize: true;*/
48+
/* m: "-5";*/
49+
/* filter: ;*/
50+
/* dpi: -1;*/
51+
/* threads: 0;*/
52+
/* scroll-method: 0;*/
53+
/* window-format: "{w} {c} {t}";*/
54+
click-to-exit: true;
55+
/* max-history-size: 25;*/
56+
/* combi-hide-mode-prefix: false;*/
57+
/* combi-display-format: "{mode} {text}";*/
58+
/* matching-negate-char: '-' /* unsupported */;*/
59+
/* cache-dir: ;*/
60+
/* window-thumbnail: false;*/
61+
/* drun-use-desktop-cache: false;*/
62+
/* drun-reload-desktop-cache: false;*/
63+
/* normalize-match: false;*/
64+
/* steal-focus: false;*/
65+
/* application-fallback-icon: ;*/
66+
/* refilter-timeout-limit: 300;*/
67+
/* xserver-i300-workaround: false;*/
68+
/* completer-mode: "filebrowser";*/
69+
/* pid: "/run/user/1000/rofi.pid";*/
70+
/* display-window: ;*/
71+
/* display-windowcd: ;*/
72+
/* display-run: ;*/
73+
/* display-ssh: ;*/
74+
/* display-drun: ;*/
75+
/* display-combi: ;*/
76+
/* display-keys: ;*/
77+
/* display-filebrowser: ;*/
78+
/* display-recursivebrowser: ;*/
79+
/* kb-primary-paste: "Control+V,Shift+Insert";*/
80+
/* kb-secondary-paste: "Control+v,Insert";*/
81+
/* kb-secondary-copy: "Control+c";*/
82+
/* kb-clear-line: "Control+w";*/
83+
/* kb-move-front: "Control+a";*/
84+
/* kb-move-end: "Control+e";*/
85+
/* kb-move-word-back: "Alt+b,Control+Left";*/
86+
/* kb-move-word-forward: "Alt+f,Control+Right";*/
87+
/* kb-move-char-back: "Left,Control+b";*/
88+
/* kb-move-char-forward: "Right,Control+f";*/
89+
/* kb-remove-word-back: "Control+Alt+h,Control+BackSpace";*/
90+
/* kb-remove-word-forward: "Control+Alt+d";*/
91+
/* kb-remove-char-forward: "Delete,Control+d";*/
92+
/* kb-remove-char-back: "BackSpace,Shift+BackSpace,Control+h";*/
93+
/* kb-remove-to-eol: "Control+k";*/
94+
/* kb-remove-to-sol: "Control+u";*/
95+
/* kb-accept-entry: "Control+j,Control+m,Return,KP_Enter";*/
96+
/* kb-accept-custom: "Control+Return";*/
97+
/* kb-accept-custom-alt: "Control+Shift+Return";*/
98+
/* kb-accept-alt: "Shift+Return";*/
99+
/* kb-delete-entry: "Shift+Delete";*/
100+
/* kb-mode-next: "Shift+Right,Control+Tab";*/
101+
/* kb-mode-previous: "Shift+Left,Control+ISO_Left_Tab";*/
102+
/* kb-mode-complete: "Control+l";*/
103+
/* kb-row-left: "Control+Page_Up";*/
104+
/* kb-row-right: "Control+Page_Down";*/
105+
kb-row-up: "Up,Control+p";
106+
kb-row-down: "Down,Control+n";
107+
/* kb-row-tab: "";*/
108+
/* kb-element-next: "Tab";*/
109+
/* kb-element-prev: "ISO_Left_Tab";*/
110+
/* kb-page-prev: "Page_Up";*/
111+
/* kb-page-next: "Page_Down";*/
112+
/* kb-row-first: "Home,KP_Home";*/
113+
/* kb-row-last: "End,KP_End";*/
114+
/* kb-row-select: "Control+space";*/
115+
/* kb-screenshot: "Alt+S";*/
116+
/* kb-ellipsize: "Alt+period";*/
117+
/* kb-toggle-case-sensitivity: "grave,dead_grave";*/
118+
/* kb-toggle-sort: "Alt+grave";*/
119+
/* kb-cancel: "Escape,Control+g,Control+bracketleft";*/
120+
/* kb-custom-1: "Alt+1";*/
121+
/* kb-custom-2: "Alt+2";*/
122+
/* kb-custom-3: "Alt+3";*/
123+
/* kb-custom-4: "Alt+4";*/
124+
/* kb-custom-5: "Alt+5";*/
125+
/* kb-custom-6: "Alt+6";*/
126+
/* kb-custom-7: "Alt+7";*/
127+
/* kb-custom-8: "Alt+8";*/
128+
/* kb-custom-9: "Alt+9";*/
129+
/* kb-custom-10: "Alt+0";*/
130+
/* kb-custom-11: "Alt+exclam";*/
131+
/* kb-custom-12: "Alt+at";*/
132+
/* kb-custom-13: "Alt+numbersign";*/
133+
/* kb-custom-14: "Alt+dollar";*/
134+
/* kb-custom-15: "Alt+percent";*/
135+
/* kb-custom-16: "Alt+dead_circumflex";*/
136+
/* kb-custom-17: "Alt+ampersand";*/
137+
/* kb-custom-18: "Alt+asterisk";*/
138+
/* kb-custom-19: "Alt+parenleft";*/
139+
/* kb-select-1: "Super+1";*/
140+
/* kb-select-2: "Super+2";*/
141+
/* kb-select-3: "Super+3";*/
142+
/* kb-select-4: "Super+4";*/
143+
/* kb-select-5: "Super+5";*/
144+
/* kb-select-6: "Super+6";*/
145+
/* kb-select-7: "Super+7";*/
146+
/* kb-select-8: "Super+8";*/
147+
/* kb-select-9: "Super+9";*/
148+
/* kb-select-10: "Super+0";*/
149+
/* kb-entry-history-up: "Control+Up";*/
150+
/* kb-entry-history-down: "Control+Down";*/
151+
/* ml-row-left: "ScrollLeft";*/
152+
/* ml-row-right: "ScrollRight";*/
153+
/* ml-row-up: "ScrollUp";*/
154+
/* ml-row-down: "ScrollDown";*/
155+
/* me-select-entry: "MousePrimary";*/
156+
/* me-accept-entry: "MouseDPrimary";*/
157+
/* me-accept-custom: "Control+MouseDPrimary";*/
158+
timeout {
159+
action: "kb-cancel";
160+
delay: 0;
161+
}
162+
filebrowser {
163+
directories-first: true;
164+
sorting-method: "name";
165+
}
166+
}
167+
168+
@theme "/dev/null"
169+
170+
* {
171+
bg: #1e1e2efa;
172+
bg-alt: #585b70fa;
173+
bg-selected: #313244fa;
174+
175+
fg: #cdd6f4;
176+
fg-alt: #7f849c;
177+
178+
179+
border: 0;
180+
margin: 0;
181+
padding: 0;
182+
spacing: 0;
183+
}
184+
185+
window {
186+
width: 20%;
187+
background-color: @bg;
188+
border-radius: 10;
189+
y-offset: 5em;
190+
}
191+
192+
// element {
193+
// padding: 8 12;
194+
// background-color: transparent;
195+
// text-color: @fg-alt;
196+
// }
197+
198+
199+
element {
200+
orientation: horizontal;
201+
children: [ element-icon ,element-text];
202+
spacing: 5px;
203+
padding: 8 12;
204+
background-color: transparent;
205+
text-color: @fg-alt;
206+
}
207+
208+
element selected {
209+
text-color: @fg;
210+
background-color: @bg-selected;
211+
}
212+
213+
element-text {
214+
background-color: transparent;
215+
text-color: inherit;
216+
vertical-align: 0.5;
217+
}
218+
219+
element-icon {
220+
size: 2em;
221+
padding: 0 10 0 0;
222+
background-color: transparent;
223+
}
224+
225+
entry {
226+
padding: 12;
227+
background-color: @bg-alt;
228+
text-color: @fg;
229+
}
230+
231+
inputbar {
232+
children: [prompt, entry];
233+
background-color: @bg;
234+
}
235+
236+
listview {
237+
background-color: @bg;
238+
columns: 1;
239+
lines: 10;
240+
}
241+
242+
mainbox {
243+
children: [inputbar, listview];
244+
background-color: @bg;
245+
}
246+
247+
prompt {
248+
enabled: true;
249+
padding: 12 0 0 12;
250+
background-color: @bg-alt;
251+
text-color: @fg;
252+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
lib,
3+
pkgs,
4+
config,
5+
configVars,
6+
...
7+
}:
8+
{
9+
10+
xdg.configFile = {
11+
"rofi/config.rasi".source = lib.mkForce (
12+
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/Projects/nix-config/home/${configVars.username}/common/optional/rofi/config.rasi"
13+
);
14+
"rofi/themes/spotlight.rasi".source = lib.mkForce (
15+
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/Projects/nix-config/home/${configVars.username}/common/optional/rofi/themes/spotlight.rasi"
16+
);
17+
};
18+
19+
programs.rofi = {
20+
enable = true;
21+
package = pkgs.rofi-wayland;
22+
plugins = with pkgs; [
23+
rofi-emoji
24+
rofi-calc
25+
];
26+
configPath = "";
27+
};
28+
}

0 commit comments

Comments
 (0)