Add cava back, update some hyprland binds to use nixpkgs paths

This commit is contained in:
Evie Litherland-Smith 2024-10-25 12:42:54 +01:00
parent 048d44ce6d
commit 2dadd171e9
3 changed files with 18 additions and 21 deletions

View file

@ -361,17 +361,17 @@
# Terminal utilities # Terminal utilities
"SUPER, S, exec, ${ "SUPER, S, exec, ${
withTerm { withTerm {
progname = "btm"; progname = "${config.programs.bottom.package}/bin/btm";
args = btm_args; args = btm_args;
} }
}" }"
"SUPER SHIFT, S, exec, ${ "SUPER SHIFT, S, exec, ${
withTerm { withTerm {
progname = "btm"; progname = "${config.programs.bottom.package}/bin/btm";
args = btm_args + " --basic"; args = btm_args + " --basic";
} }
}" }"
"SUPER, C, exec, ${withTerm { progname = "cava"; }}" "SUPER, C, exec, ${withTerm { progname = "${config.programs.cava.package}/bin/cava"; }}"
# Misc useful binds # Misc useful binds
",Print,exec,${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\" - | ${pkgs.swappy}/bin/swappy -f -" ",Print,exec,${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\" - | ${pkgs.swappy}/bin/swappy -f -"

View file

@ -1,18 +0,0 @@
{ config, ... }:
{
programs.cava = {
enable = true;
settings = {
color = with config.lib.stylix.colors.withHashtag; {
gradient = 1;
gradient_count = 6;
gradient_color_1 = "'${red}'";
gradient_color_2 = "'${yellow}'";
gradient_color_3 = "'${green}'";
gradient_color_4 = "'${cyan}'";
gradient_color_5 = "'${blue}'";
gradient_color_6 = "'${magenta}'";
};
};
};
}

View file

@ -49,6 +49,21 @@
}; };
}; };
}; };
cava = {
enable = true;
settings = {
color = with config.lib.stylix.colors.withHashtag; {
gradient = 1;
gradient_count = 6;
gradient_color_1 = "'${red}'";
gradient_color_2 = "'${yellow}'";
gradient_color_3 = "'${green}'";
gradient_color_4 = "'${cyan}'";
gradient_color_5 = "'${blue}'";
gradient_color_6 = "'${magenta}'";
};
};
};
direnv = { direnv = {
enable = true; enable = true;
nix-direnv.enable = true; nix-direnv.enable = true;