Compare commits
2 Commits
c18beb0483
...
8cb30719fa
Author | SHA1 | Date | |
---|---|---|---|
8cb30719fa | |||
2d0a133dd9 |
@@ -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
22
modules/hm/cava.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
@@ -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";
|
||||
@@ -50,8 +53,8 @@ in {
|
||||
"$menu" = "rofi -show-icons -show drun";
|
||||
|
||||
general = {
|
||||
gaps_in = 5;
|
||||
gaps_out = 15;
|
||||
gaps_in = 6;
|
||||
gaps_out = "10,15,15,15";
|
||||
border_size = 1;
|
||||
"col.active_border" = "rgba(${colors.gruvbox-rgb.bright_orange},1.0) rgba(${colors.gruvbox-rgb.red},1.0) 45deg";
|
||||
"col.inactive_border" = "rgba(${colors.gruvbox-rgb.bg4},0.66)";
|
||||
@@ -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 = 8;
|
||||
render_power = 4;
|
||||
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%"
|
||||
];
|
||||
};
|
||||
|
||||
@@ -90,6 +104,13 @@ in {
|
||||
smart_split = true;
|
||||
};
|
||||
|
||||
# Layer rules
|
||||
layerrule = [
|
||||
"blur, waybar" # Blur waybar
|
||||
"ignorezero, waybar"
|
||||
"ignorealpha 0.5, waybar"
|
||||
];
|
||||
|
||||
# Window rules
|
||||
windowrulev2 = [
|
||||
# Nice transparency for some apps (unless in fullscreen)
|
||||
|
@@ -19,7 +19,10 @@
|
||||
"all-outputs" = true;
|
||||
"separate-outputs" = true;
|
||||
};
|
||||
load = {format = " {load1}";};
|
||||
load = {
|
||||
format = " {load1}";
|
||||
"on-click" = "btop";
|
||||
};
|
||||
backlight = {
|
||||
format = "{icon} {percent}%";
|
||||
"format-icons" = ["" "" "" "" "" "" "" "" ""];
|
||||
@@ -32,18 +35,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" = {
|
||||
@@ -69,16 +73,18 @@
|
||||
};
|
||||
};
|
||||
battery = {
|
||||
interval = 60;
|
||||
states = {
|
||||
good = 95;
|
||||
warning = 30;
|
||||
critical = 15;
|
||||
};
|
||||
format = "{icon} {capacity}%";
|
||||
"format-full" = "{icon} {capacity}%";
|
||||
"format-charging" = " {capacity}%";
|
||||
"format-charging" = " {capacity}%";
|
||||
"format-plugged" = " {capacity}%";
|
||||
"format-alt" = "{icon} {time}";
|
||||
"format-icons" = ["" "" "" "" ""];
|
||||
"format-icons" = ["" "" "" "" "" ""];
|
||||
};
|
||||
mpris = {
|
||||
format = "{status_icon} {dynamic}";
|
||||
@@ -95,8 +101,8 @@
|
||||
"scroll-step" = 1;
|
||||
format = "{icon} {volume}%";
|
||||
"format-bluetooth" = "{icon} {volume}% ";
|
||||
"format-bluetooth-muted" = " {icon}";
|
||||
"format-muted" = "";
|
||||
"format-bluetooth-muted" = " {icon}";
|
||||
"format-muted" = "";
|
||||
"format-icons" = {
|
||||
headphone = "";
|
||||
"hands-free" = "";
|
||||
@@ -134,18 +140,19 @@
|
||||
cava = {
|
||||
framerate = 60;
|
||||
autosens = 1;
|
||||
bars = 10;
|
||||
sensitivity = 2;
|
||||
bars = 12;
|
||||
"lower_cutoff_freq" = 50;
|
||||
"higher_cutoff_freq" = 10000;
|
||||
method = "pulse";
|
||||
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";};
|
||||
};
|
||||
mpris = {
|
||||
@@ -188,17 +195,17 @@
|
||||
@define-color braqua #8ec07c;
|
||||
@define-color orange #d65d0e;
|
||||
@define-color brorange #fe8019;
|
||||
@define-color tooltipbg rgba(40, 40, 40, 0.8);
|
||||
@define-color tooltipbg rgba(40, 40, 40, 0.9);
|
||||
|
||||
* {
|
||||
font-size: 14px;
|
||||
border-radius: 5px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
tooltip {
|
||||
font-family: Intel One Mono, monospace;
|
||||
font-family: Intel One Mono, Symbols Nerd Font Mono,monospace;
|
||||
background-color: @tooltipbg;
|
||||
border-radius: 5px;
|
||||
border-radius: 6px;
|
||||
border: 1px solid @bg3;
|
||||
}
|
||||
|
||||
@@ -213,7 +220,7 @@
|
||||
border-bottom: 0px;
|
||||
color: @fg;
|
||||
transition-property: background-color;
|
||||
transition-duration: .4s;
|
||||
transition-duration: .2s;
|
||||
}
|
||||
|
||||
window#waybar.hidden {
|
||||
@@ -225,69 +232,57 @@
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/*
|
||||
window#waybar.empty {
|
||||
background-color: transparent;
|
||||
}
|
||||
window#waybar.solo {
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
*/
|
||||
|
||||
.modules-left,
|
||||
.modules-center,
|
||||
.modules-right {
|
||||
margin: 15px 15px 0;
|
||||
margin: 10px 16px 0;
|
||||
}
|
||||
|
||||
button {
|
||||
/* Use box-shadow instead of border so the text isn't offset */
|
||||
/* box-shadow: inset 0 -3px transparent; */
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
||||
/*
|
||||
button:hover {
|
||||
background: inherit;
|
||||
box-shadow: inset 0 -3px @fg;
|
||||
} */
|
||||
|
||||
#workspaces {
|
||||
background-color: @bg;
|
||||
background-color: transparent;
|
||||
border: 1px solid alpha(@bg4,.6);
|
||||
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 5px;
|
||||
background-color: transparent;
|
||||
padding: 0 6px;
|
||||
background: alpha(@bg,.6);
|
||||
color: @fg;
|
||||
border-radius: 0;
|
||||
transition-property: background-color;
|
||||
transition-duration: .2s;
|
||||
}
|
||||
|
||||
#workspaces button:first-child {
|
||||
border-radius: 5px 0 0 5px;
|
||||
border-radius: 6px 0 0 6px;
|
||||
}
|
||||
|
||||
#workspaces button:last-child {
|
||||
border-radius: 0 5px 5px 0;
|
||||
border-radius: 0 6px 6px 0;
|
||||
}
|
||||
|
||||
#workspaces button:first-child:last-child {
|
||||
border-radius: 5px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
color: @orange;
|
||||
#workspaces button:hover, #workspaces button.active:hover {
|
||||
color: @yellow;
|
||||
background: alpha(@bg4,.6);
|
||||
box-shadow: inherit;
|
||||
text-shadow: inherit;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
color: @yellow;
|
||||
background-color: @bg3;
|
||||
/* box-shadow: inset 0 -3px #ffffff; */
|
||||
color: @orange;
|
||||
background: alpha(@fg,.6);
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
background-color: @purple;
|
||||
background: alpha(@purple,.6);
|
||||
}
|
||||
|
||||
#idle_inhibitor,
|
||||
@@ -304,21 +299,17 @@
|
||||
#mpris,
|
||||
#power-profiles-daemon,
|
||||
#load {
|
||||
padding: 0 10px;
|
||||
background-color: @bg;
|
||||
color: @fg;
|
||||
padding: 0 15px;
|
||||
background: alpha(@bg,.6);
|
||||
border: 1px solid alpha(@bg4,.6);
|
||||
}
|
||||
|
||||
#window {
|
||||
padding: 0 10px;
|
||||
background-color: @fg;
|
||||
padding: 0 15px;
|
||||
color: @bg1;
|
||||
}
|
||||
|
||||
#mode {
|
||||
background-color: @aqua;
|
||||
color: @fglight;
|
||||
/* box-shadow: inset 0 -3px #ffffff; */
|
||||
background: alpha(@fg,.6);
|
||||
border: 1px solid alpha(@bg4,.6);
|
||||
}
|
||||
|
||||
/* If workspaces is the leftmost module, omit left margin */
|
||||
@@ -332,7 +323,7 @@
|
||||
}
|
||||
|
||||
#cava {
|
||||
padding: 0 5px;
|
||||
padding: 0 6px;
|
||||
}
|
||||
|
||||
#cava.silent {
|
||||
@@ -341,36 +332,41 @@
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#battery.charging, #battery.plugged {
|
||||
background-color: @green;
|
||||
color: @fglight;
|
||||
}
|
||||
|
||||
#power-profiles-daemon.performance {
|
||||
background-color: @red;
|
||||
color: @fglight;
|
||||
background: alpha(@red,.6);
|
||||
color: @fg;
|
||||
}
|
||||
|
||||
#power-profiles-daemon.balanced {
|
||||
background-color: @blue;
|
||||
color: @fglight;
|
||||
background: alpha(@blue,.6);
|
||||
color: @fg;
|
||||
}
|
||||
|
||||
#power-profiles-daemon.power-saver {
|
||||
background-color: @green;
|
||||
background: alpha(@green,.6);
|
||||
color: @fg;
|
||||
}
|
||||
|
||||
#battery.charging, #battery.plugged, #battery.good {
|
||||
background: alpha(@green,.6);
|
||||
color: @fg;
|
||||
}
|
||||
|
||||
#battery.warning {
|
||||
background: alpha(@yellow,.6);
|
||||
color: @fglight;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
background-color: @bg;
|
||||
background: alpha(@bg,.6);
|
||||
color: @fg;
|
||||
}
|
||||
}
|
||||
|
||||
/* Using steps() instead of linear as a timing function to limit cpu usage */
|
||||
#battery.critical:not(.charging) {
|
||||
background-color: @red;
|
||||
background: alpha(@red,.6);
|
||||
color: @fg;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
@@ -380,7 +376,7 @@
|
||||
}
|
||||
|
||||
#wireplumber.muted {
|
||||
background-color: @blue;
|
||||
background: alpha(@blue,.6);
|
||||
}
|
||||
|
||||
#tray > .passive {
|
||||
@@ -392,18 +388,13 @@
|
||||
}
|
||||
|
||||
#mpris.playing {
|
||||
background-color: @yellow;
|
||||
background: alpha(@yellow,.6);
|
||||
color: @fglight;
|
||||
}
|
||||
|
||||
#tray menu {
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
#scratchpad.empty {
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user