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;
programs = {
launchers = {
anyrun.enable = true;
rofi.enable = true;
fuzzel.enable = true;
};
media = {
beets.enable = true;

View file

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

View file

@ -2,5 +2,6 @@ _: {
imports = [
./rofi
./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, Q, killactive"
"$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"
# workspaces