nixcfg/homeManagerModules/apps/rofi/default.nix
Aly Raffauf 2cf2bb3747
Some checks are pending
flakehub / flakehub-publish (push) Waiting to run
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
home/waybar: use networkmanager-dmenu and blueberry (#63)
* home/waybar: use rofi with networkmanager_dmenu for wifi

* home/rofi: improve networkmanager-dmenu settings

* home/waybar: move to wofi

* home/waybar: use blueberry for bluetooth

* home/hyprland: add bluberry window rules
2024-07-25 18:03:57 -04:00

65 lines
1.6 KiB
Nix

{
config,
lib,
pkgs,
...
}: let
cfg = config.ar.home;
in {
config = lib.mkIf cfg.apps.rofi.enable {
home.packages = [pkgs.networkmanager_dmenu];
programs.rofi = {
enable = true;
font = "NotoSansM Nerd Font ${toString config.gtk.font.size}";
location = "center";
package = pkgs.rofi-wayland;
plugins = [pkgs.rofi-power-menu];
terminal = lib.getExe cfg.defaultApps.terminal;
theme = "glue_pro_blue";
extraConfig = {
click-to-exit = true;
combi-display-format = "{text}";
combi-hide-mode-prefix = true;
combi-modes = [
"window"
"drun"
"ssh"
];
display-combi = "Search";
display-filebrowser = "Files";
display-ssh = "SSH";
display-window = "Windows";
drun-display-format = "{icon} {name}";
hide-scrollbar = true;
hover-select = true;
me-accept-entry = "MousePrimary";
me-select-entry = "";
modes = "drun,window,ssh,combi,filebrowser";
show-display-name = false;
show-icons = true;
sort = true;
window-format = " {c} {t}";
window-thumbnail = false;
};
};
xdg.configFile."networkmanager-dmenu/config.ini".text = ''
[dmenu]
dmenu_command = ${lib.getExe config.programs.rofi.package}
highlight = True
[dmenu_passphrase]
obscure = True
[editor]
gui = ${pkgs.networkmanagerapplet}/bin/nm-connection-editor
gui_if_available = True
terminal = ${lib.getExe cfg.defaultApps.terminal}
'';
};
}