feat(rofi): initial rofi configuration

This commit is contained in:
ooks-io 2024-03-04 18:47:52 +13:00
parent 2d83b0f10d
commit 81e37c40c0
4 changed files with 25 additions and 1 deletions

View file

@ -3,11 +3,15 @@
{ {
imports = [ imports = [
./anyrun ./anyrun
./rofi
]; ];
options.homeModules.desktop.wayland.launcher = { options.homeModules.desktop.wayland.launcher = {
anyrun = { anyrun = {
enable = lib.mkEnableOption "enable anyrun launcher module"; enable = lib.mkEnableOption "enable anyrun launcher module";
}; };
rofi = {
enable = lib.mkEnableOption "enable rofi launcher module";
};
}; };
} }

View file

@ -0,0 +1,16 @@
{ lib, config, pkgs, ... }:
let
cfg = config.homeModules.desktop.wayland.launcher.rofi;
in
{
config = lib.mkIf cfg.enable {
programs.rofi = {
enable = true;
font = "${config.fontProfiles.monospace.family}";
package = pkgs.rofi-wayland;
};
};
}

View file

@ -51,6 +51,7 @@
fi fi
fi fi
''; '';
in in
{ {
@ -175,5 +176,8 @@ in
"SUPER, mouse:272, movewindow" "SUPER, mouse:272, movewindow"
"SUPER, mouse:273, resizewindow" "SUPER, mouse:273, resizewindow"
]; ];
bindr = [
"SUPER, SUPER_L, exec, killall rofi || run-as-service $(rofi -show drun)"
];
}; };
} }

View file

@ -16,7 +16,7 @@ in
lockscreen.hyprlock.enable = true; lockscreen.hyprlock.enable = true;
notification.mako.enable = true; notification.mako.enable = true;
bar.waybar.enable = true; bar.waybar.enable = true;
launcher.anyrun.enable = true; launcher.rofi.enable = true;
}; };
communication = { communication = {
discord.enable = true; discord.enable = true;