Files
NubNix/home-manager/20_cava/default.nix
2025-11-13 14:15:48 +00:00

87 lines
3.8 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ config, pkgs, ... }:
{
imports = [
./01_shaders_bar-spectrum.nix
./02_shaders_nothern-lights.nix
./03_shaders_pass-through.nix
./04_shaders_spectrogram.nix
./05_shaders_winamp-line-style-spectrum.nix
];
home.file = {
".config/cava/config".text = ''
#
# °˖* ( )🍸 pewdiepie/archdaemon/dionysh shhheersh
# Custom config for cava
# vers. 1.0.0-nix
#
; General
[general]
; framerate frames per second (nonnegative)
framerate = 64
; number of bars (0 = auto). 64 gives a nice classic look.
bars = 64
; Input
[input]
; Choose the backend you actually use. Here we keep *pulse* active and
; leave the other backends commented for easy switching.
method = pulse
source = alsa_output.pci-0000_06_00.6.analog-stereo.monitor
;method = pipewire
;source = auto
;method = alsa
;source = hw:Loopback,1
;method = fifo
;source = /tmp/mpd.fifo
;method = shmem
;source = /squeezelite-AA:BB:CC:DD:EE:FF
;method = portaudio
;source = auto
;method = sndio
;source = default
;method = oss
;source = /dev/dsp
;method = jack
;source = default
; Output
[output]
; Raw output is the most portable it writes binary/ascii data to a FIFO.
method = raw
raw_target = /tmp/cava.raw ; where the data will be written
data_format = ascii ; ascii makes it easy to inspect with `cat`
; Uncomment and adjust if you ever need binary data.
;bit_format = 16bit
; Colours
[color]
; Keep the terminals own palette (default) edit only if your terminal
; supports truecolour changes.
;background = default
;foreground = default
; Smoothing
[smoothing]
; The Monstercat smoothing algorithm gives a nice, slightlysoft look.
; Set to 0 to disable, 1100 to increase smoothness.
monstercat = 0
waves = 0
; Equaliser (optional)
[eq]
; Uncomment the bands you want to boost/cut. Values are 0100 where 50 is
; no change. Example shows a flat (all50) EQ.
;1 = 50 ; bass
;2 = 50
;3 = 50 ; midtone
;4 = 50
;5 = 50 ; treble
'';
};
}