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

View File

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