New theme + Cava config
This commit is contained in:
parent
f643371195
commit
78b6962d8a
4 changed files with 50 additions and 12 deletions
20
home_manager/modules/cava.nix
Normal file
20
home_manager/modules/cava.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ pkgs, lib, ... }:
|
||||
let
|
||||
strPalette = with pkgs.rice; pkgs.lib.rice.palette.toRgbHex colorPalette;
|
||||
fmtString = str: "\'${str}\'";
|
||||
in
|
||||
{
|
||||
xdg.configFile."cava/config".text = lib.generators.toINI { } {
|
||||
general = { bar_width = 1; bar_spacing = 1; };
|
||||
color = {
|
||||
gradient = 1;
|
||||
gradient_count = 5;
|
||||
gradient_color_1 = fmtString strPalette.normal.red;
|
||||
gradient_color_2 = fmtString strPalette.normal.yellow;
|
||||
gradient_color_3 = fmtString strPalette.normal.white;
|
||||
gradient_color_4 = fmtString strPalette.normal.cyan;
|
||||
gradient_color_5 = fmtString strPalette.normal.blue;
|
||||
};
|
||||
smoothing = { gravity = 40; };
|
||||
};
|
||||
}
|
||||
|
|
@ -126,6 +126,7 @@
|
|||
./modules/alacritty.nix
|
||||
./modules/autorandr.nix
|
||||
./modules/bspwm.nix
|
||||
./modules/cava.nix
|
||||
./modules/easyeffects.nix
|
||||
./modules/dunst.nix
|
||||
# ./modules/grobi.nix
|
||||
|
|
|
|||
17
rice.nix
17
rice.nix
|
|
@ -3,27 +3,20 @@ let
|
|||
# nord = prev.lib.rice.palette.tPalette prev.lib.rice.color.hexToRgba (import ./themes/nord.nix);
|
||||
# onedark = prev.lib.rice.palette.tPalette prev.lib.rice.color.hexToRgba (import ./themes/onedark.nix);
|
||||
# tomorrow-night = prev.lib.rice.palette.tPalette prev.lib.rice.color.hexToRgba (import ./themes/tomorrow-night.nix);
|
||||
mkpm = with prev.lib.rice; palette.tPalette color.hexToRgba (import ./themes/monokai-pro-machine.nix);
|
||||
# mkpm = with prev.lib.rice; palette.tPalette color.hexToRgba (import ./themes/monokai-pro-machine.nix);
|
||||
bloom = with prev.lib.rice; palette.tPalette color.hexToRgba (import ./themes/bloom.nix);
|
||||
in
|
||||
(
|
||||
rec {
|
||||
rice = {
|
||||
colorPalette = with prev.lib.rice; rec {
|
||||
normal = palette.defaultPalette // {
|
||||
black = mkpm.base2;
|
||||
blue = mkpm.blue;
|
||||
green = mkpm.green;
|
||||
red = mkpm.red;
|
||||
white = mkpm.base8;
|
||||
yellow = mkpm.yellow;
|
||||
inherit (bloom.normal) black red green yellow blue magenta cyan white;
|
||||
};
|
||||
bright = palette.brighten 10 normal // {
|
||||
red = mkpm.orange;
|
||||
black = mkpm.base3;
|
||||
};
|
||||
dark = palette.darken 10 normal // {
|
||||
black = mkpm.base0;
|
||||
inherit (bloom.bright) black red green yellow blue magenta cyan white;
|
||||
};
|
||||
dark = palette.darken 10 normal;
|
||||
};
|
||||
font = {
|
||||
normal = {
|
||||
|
|
|
|||
24
themes/bloom.nix
Normal file
24
themes/bloom.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
normal = {
|
||||
black = "#131718";
|
||||
red = "#df5b61";
|
||||
green = "#87c7a1";
|
||||
yellow = "#de8f78";
|
||||
blue = "#6791c9";
|
||||
magenta = "#bc83e3";
|
||||
cyan = "#70b9cc";
|
||||
white = "#c4c4c4";
|
||||
|
||||
};
|
||||
|
||||
bright = {
|
||||
black = "#151a1c";
|
||||
red = "#ee6a70";
|
||||
green = "#96d6b0";
|
||||
yellow = "#ffb29b";
|
||||
blue = "#7ba5dd";
|
||||
magenta = "#cb92f2";
|
||||
cyan = "#7fc8db";
|
||||
white = "#cccccc";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue