2024-07-25 15:26:12 -04:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
cfg = config.ar.home;
|
|
|
|
in {
|
|
|
|
config = lib.mkIf cfg.apps.rofi.enable {
|
2024-07-26 00:21:42 -04:00
|
|
|
home.packages = [
|
|
|
|
pkgs.networkmanager_dmenu
|
|
|
|
pkgs.rofi-bluetooth
|
2024-08-02 07:50:06 -04:00
|
|
|
pkgs.rofi-rbw-wayland
|
2024-07-26 00:21:42 -04:00
|
|
|
];
|
2024-07-25 18:03:57 -04:00
|
|
|
|
2024-07-25 15:26:12 -04:00
|
|
|
programs.rofi = {
|
|
|
|
enable = true;
|
|
|
|
location = "center";
|
|
|
|
package = pkgs.rofi-wayland;
|
2024-07-29 21:47:21 -04:00
|
|
|
|
|
|
|
plugins = [
|
|
|
|
pkgs.rofi-power-menu
|
|
|
|
pkgs.rofi-file-browser
|
|
|
|
];
|
|
|
|
|
2024-07-25 15:26:12 -04:00
|
|
|
terminal = lib.getExe cfg.defaultApps.terminal;
|
|
|
|
|
|
|
|
extraConfig = {
|
2024-07-29 21:47:21 -04:00
|
|
|
case-sensitive = false;
|
2024-07-25 15:26:12 -04:00
|
|
|
click-to-exit = true;
|
|
|
|
combi-display-format = "{text}";
|
|
|
|
combi-hide-mode-prefix = true;
|
|
|
|
|
|
|
|
combi-modes = [
|
|
|
|
"window"
|
|
|
|
"drun"
|
|
|
|
"ssh"
|
2024-07-29 21:47:21 -04:00
|
|
|
"recursivebrowser"
|
2024-07-25 15:26:12 -04:00
|
|
|
];
|
|
|
|
|
2024-07-25 18:03:57 -04:00
|
|
|
display-combi = "Search";
|
2024-07-29 21:47:21 -04:00
|
|
|
display-drun = "Apps";
|
2024-07-25 18:03:57 -04:00
|
|
|
display-filebrowser = "Files";
|
2024-07-29 21:47:21 -04:00
|
|
|
display-recursivebrowser = "Files";
|
2024-07-25 20:25:22 -04:00
|
|
|
display-run = "Run";
|
2024-07-25 18:03:57 -04:00
|
|
|
display-ssh = "SSH";
|
|
|
|
display-window = "Windows";
|
2024-07-25 15:26:12 -04:00
|
|
|
drun-display-format = "{icon} {name}";
|
|
|
|
hover-select = true;
|
2024-07-30 15:34:06 -04:00
|
|
|
matching = "fuzzy";
|
2024-07-25 15:26:12 -04:00
|
|
|
me-accept-entry = "MousePrimary";
|
|
|
|
me-select-entry = "";
|
2024-07-29 21:47:21 -04:00
|
|
|
modes = "drun,window,ssh,recursivebrowser";
|
|
|
|
scrollbar = false;
|
2024-07-25 15:26:12 -04:00
|
|
|
show-display-name = false;
|
|
|
|
show-icons = true;
|
|
|
|
sort = true;
|
|
|
|
window-format = " {c} {t}";
|
|
|
|
window-thumbnail = false;
|
|
|
|
};
|
|
|
|
};
|
2024-07-25 18:03:57 -04:00
|
|
|
|
2024-08-02 07:50:06 -04:00
|
|
|
xdg.configFile = {
|
|
|
|
"rofi-rbw.rc".text = ''
|
|
|
|
prompt "Bitwarden"
|
|
|
|
clear-after 60
|
|
|
|
'';
|
2024-07-28 23:16:52 -04:00
|
|
|
|
2024-08-02 07:50:06 -04:00
|
|
|
"networkmanager-dmenu/config.ini".text = ''
|
|
|
|
[dmenu]
|
|
|
|
dmenu_command = ${lib.getExe config.programs.rofi.package}
|
|
|
|
highlight = True
|
2024-07-25 18:03:57 -04:00
|
|
|
|
2024-08-02 07:50:06 -04:00
|
|
|
[dmenu_passphrase]
|
|
|
|
obscure = True
|
|
|
|
|
|
|
|
[editor]
|
|
|
|
gui = ${pkgs.networkmanagerapplet}/bin/nm-connection-editor
|
|
|
|
gui_if_available = True
|
|
|
|
terminal = ${lib.getExe cfg.defaultApps.terminal}
|
|
|
|
'';
|
|
|
|
};
|
2024-07-25 15:26:12 -04:00
|
|
|
};
|
|
|
|
}
|