mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 09:13:55 -05:00
home: add rofi module with default settings
This commit is contained in:
parent
6bfa581c54
commit
9b72b7f645
|
@ -14,6 +14,7 @@
|
|||
./librewolf
|
||||
./mako
|
||||
./nemo
|
||||
./rofi
|
||||
./swaylock
|
||||
./thunar
|
||||
./tmux
|
||||
|
|
51
homeManagerModules/apps/rofi/default.nix
Normal file
51
homeManagerModules/apps/rofi/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -103,6 +103,7 @@ in {
|
|||
"blur,launcher"
|
||||
"blur,logout_dialog"
|
||||
"blur,notifications"
|
||||
"blur,rofi"
|
||||
"blur,swayosd"
|
||||
"blur,waybar"
|
||||
"ignorezero,notifications"
|
||||
|
|
|
@ -60,7 +60,9 @@ in {
|
|||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
rofi.enable = lib.mkEnableOption "Rofi launcher.";
|
||||
swaylock.enable = lib.mkEnableOption "Swaylock screen locker.";
|
||||
|
||||
thunar.enable = lib.mkOption {
|
||||
description = "Thunar file manager.";
|
||||
default = cfg.defaultApps.fileManager == pkgs.xfce.thunar;
|
||||
|
|
|
@ -80,6 +80,7 @@ in {
|
|||
helix.enable = true;
|
||||
keepassxc.enable = true;
|
||||
kitty.enable = true;
|
||||
rofi.enable = true;
|
||||
tmux.enable = true;
|
||||
yazi.enable = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue