added the fuzzel application launcher

This commit is contained in:
Charlie Root 2024-08-20 21:37:28 +02:00
commit 98e78cfd01
5 changed files with 23 additions and 3 deletions

View file

@ -44,8 +44,7 @@
desktops.hyprland.enable = true; desktops.hyprland.enable = true;
programs = { programs = {
launchers = { launchers = {
anyrun.enable = true; fuzzel.enable = true;
rofi.enable = true;
}; };
media = { media = {
beets.enable = true; beets.enable = true;

View file

@ -5,5 +5,6 @@ in {
anyrun.enable = mkEnableOption "anyrun application launcher"; anyrun.enable = mkEnableOption "anyrun application launcher";
rofi.enable = mkEnableOption "rofi application launcher"; rofi.enable = mkEnableOption "rofi application launcher";
tofi.enable = mkEnableOption "tofi application launcher"; tofi.enable = mkEnableOption "tofi application launcher";
fuzzel.enable = mkEnableOption "fuzzel application launcher";
}; };
} }

View file

@ -2,5 +2,6 @@ _: {
imports = [ imports = [
./rofi ./rofi
./anyrun ./anyrun
./fuzzel/module.nix
]; ];
} }

View file

@ -0,0 +1,19 @@
{
config,
lib,
pkgs,
...
}: let
inherit (lib) mkIf;
inherit (config.modules.other.system) username;
cfg = config.modules.usrEnv.programs.launchers.fuzzel;
in {
config = {
home-manager.users.${username}.programs.fuzzel = mkIf cfg.enable {
enable = true;
package = pkgs.fuzzel;
settings = {
};
};
};
}

View file

@ -218,7 +218,7 @@ in {
"$mainMod, RETURN, exec, ${foot}/bin/foot" "$mainMod, RETURN, exec, ${foot}/bin/foot"
"$mainMod, Q, killactive" "$mainMod, Q, killactive"
"$mainMod, F, fullscreen, 0" "$mainMod, F, fullscreen, 0"
"$mainMod, D, exec, ${pkgs.procps}/bin/pkill anyrun || ${anyrun}/bin/anyrun" "$mainMod, D, exec, ${pkgs.procps}/bin/pkill fuzzel || ${anyrun}/bin/fuzzel"
"$mainMod, SPACE, togglefloating, active" "$mainMod, SPACE, togglefloating, active"
# workspaces # workspaces