home: add rofi module with default settings

This commit is contained in:
Aly Raffauf 2024-07-25 14:48:41 -04:00
parent 6bfa581c54
commit 9b72b7f645
5 changed files with 57 additions and 1 deletions

View file

@ -14,6 +14,7 @@
./librewolf ./librewolf
./mako ./mako
./nemo ./nemo
./rofi
./swaylock ./swaylock
./thunar ./thunar
./tmux ./tmux

View file

@ -0,0 +1,51 @@
{
config,
lib,
pkgs,
...
}: let
cfg = config.ar.home;
in {
config = lib.mkIf cfg.apps.rofi.enable {
programs.rofi = {
enable = true;
font = "NotoSansM Nerd Font ${toString config.gtk.font.size}";
location = "center";
package = pkgs.rofi-wayland;
plugins = [pkgs.rofi-emoji 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"
# "power-menu:${lib.getExe pkgs.rofi-power-menu} --no-symbols --choices=logout/lockscreen/suspend/shutdown/reboot"
];
display-drun = " ";
display-filebrowser = " ";
display-power-menu = " ";
display-run = " ";
display-ssh = " ";
display-window = " ";
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;
};
};
};
}

View file

@ -103,6 +103,7 @@ in {
"blur,launcher" "blur,launcher"
"blur,logout_dialog" "blur,logout_dialog"
"blur,notifications" "blur,notifications"
"blur,rofi"
"blur,swayosd" "blur,swayosd"
"blur,waybar" "blur,waybar"
"ignorezero,notifications" "ignorezero,notifications"

View file

@ -59,8 +59,10 @@ in {
default = cfg.defaultApps.fileManager == pkgs.cinnamon.nemo; default = cfg.defaultApps.fileManager == pkgs.cinnamon.nemo;
type = lib.types.bool; type = lib.types.bool;
}; };
rofi.enable = lib.mkEnableOption "Rofi launcher.";
swaylock.enable = lib.mkEnableOption "Swaylock screen locker."; swaylock.enable = lib.mkEnableOption "Swaylock screen locker.";
thunar.enable = lib.mkOption { thunar.enable = lib.mkOption {
description = "Thunar file manager."; description = "Thunar file manager.";
default = cfg.defaultApps.fileManager == pkgs.xfce.thunar; default = cfg.defaultApps.fileManager == pkgs.xfce.thunar;

View file

@ -80,6 +80,7 @@ in {
helix.enable = true; helix.enable = true;
keepassxc.enable = true; keepassxc.enable = true;
kitty.enable = true; kitty.enable = true;
rofi.enable = true;
tmux.enable = true; tmux.enable = true;
yazi.enable = true; yazi.enable = true;