cava config, hyprland changes

This commit is contained in:
2025-06-29 18:51:28 +02:00
parent c18beb0483
commit 2d0a133dd9
4 changed files with 53 additions and 15 deletions

View File

@ -43,6 +43,7 @@
./hm/ssh.nix # SSH config ./hm/ssh.nix # SSH config
./hm/gitkraken.nix # GitKraken config ./hm/gitkraken.nix # GitKraken config
./hm/waybar.nix # Waybar config ./hm/waybar.nix # Waybar config
./hm/cava.nix # Audio visualizer config
]; ];
}; };

22
modules/hm/cava.nix Normal file
View File

@ -0,0 +1,22 @@
let
colors = import ../gruvbox-theme.nix;
in {
programs.cava = {
enable = true;
settings = {
general = {
framerate = 60;
bar_spacing = 0;
};
input.method = "pipewire";
output.channels = "mono";
color = {
gradient = 1;
gradient_count = 2;
gradient_color_1 = "'${colors.gruvbox.aqua}'";
gradient_color_2 = "'${colors.gruvbox.orange}'";
};
smoothing.noise_reduction = 0.8;
};
};
}

View File

@ -14,6 +14,7 @@ in {
misc = { misc = {
disable_hyprland_logo = true; # disables the random Hyprland logo / anime girl background. :( disable_hyprland_logo = true; # disables the random Hyprland logo / anime girl background. :(
disable_splash_rendering = true; disable_splash_rendering = true;
focus_on_activate = true;
}; };
input = { input = {
@ -42,6 +43,8 @@ in {
workspace_swipe = true; workspace_swipe = true;
workspace_swipe_forever = true; workspace_swipe_forever = true;
workspace_swipe_direction_lock = false; workspace_swipe_direction_lock = false;
workspace_swipe_distance = 200;
workspace_swipe_min_speed_to_force = 0;
}; };
"$mod" = "SUPER"; "$mod" = "SUPER";
@ -61,26 +64,37 @@ in {
decoration = { decoration = {
rounding = 10; rounding = 10;
rounding_power = 4; rounding_power = 3.5;
blur = { blur = {
enabled = true; enabled = true;
xray = true; new_optimizations = true;
size = 4; ignore_opacity = true;
passes = 4; xray = false;
size = 3;
passes = 5;
popups = true;
};
shadow = {
enabled = true;
range = 15;
render_power = 5;
color = "rgba(0,0,0,.5)";
}; };
}; };
animations = { animations = {
enabled = true; enabled = true;
bezier = "myBezier, 0.05, 0.9, 0.1, 1.05"; bezier = [
"fluid, 0.15, 0.85, 0.25, 1"
"snappy, 0.3, 1, 0.4, 1"
];
animation = [ animation = [
"windows, 1, 7, myBezier" "windows, 1, 3, fluid, popin 5%"
"windowsOut, 1, 7, default, popin 80%" "windowsOut, 1, 2.5, snappy"
"border, 1, 10, default" "fade, 1, 4, snappy"
"borderangle, 1, 8, default" "workspaces, 1, 1.7, snappy, slidevert"
"fade, 1, 7, default" "layers, 1, 2, snappy, popin 70%"
"workspaces, 1, 6, default, slidevert"
]; ];
}; };

View File

@ -19,7 +19,7 @@
"all-outputs" = true; "all-outputs" = true;
"separate-outputs" = true; "separate-outputs" = true;
}; };
load = {format = " {load1}";}; load = {format = " {load1}";};
backlight = { backlight = {
format = "{icon} {percent}%"; format = "{icon} {percent}%";
"format-icons" = ["" "" "" "" "" "" "" "" ""]; "format-icons" = ["" "" "" "" "" "" "" "" ""];
@ -32,18 +32,19 @@
cava = { cava = {
framerate = 60; framerate = 60;
autosens = 1; autosens = 1;
bars = 8; sensitivity = 2;
bars = 12;
"lower_cutoff_freq" = 50; "lower_cutoff_freq" = 50;
"higher_cutoff_freq" = 10000; "higher_cutoff_freq" = 10000;
method = "pipewire"; method = "pipewire";
source = "auto"; source = "auto";
stereo = false; stereo = false;
"bar_delimiter" = 0; "bar_delimiter" = 0;
"noise_reduction" = 0.77; "noise_reduction" = 0.7;
"input_delay" = 2; "input_delay" = 2;
"hide_on_silence" = true; "hide_on_silence" = true;
"sleep_timer" = 3; "sleep_timer" = 3;
"format-icons" = ["" "" "" "" "" "" "" ""]; "format-icons" = [" " "" "" "" "" "" "" "" ""];
actions = {"on-click-right" = "mode";}; actions = {"on-click-right" = "mode";};
}; };
"idle_inhibitor" = { "idle_inhibitor" = {