config (8065B)
1 ## Configuration file for CAVA. 2 # Remove the ; to change parameters. 3 4 5 [general] 6 7 # Smoothing mode. Can be 'normal', 'scientific' or 'waves'. DEPRECATED as of 0.6.0 8 mode = normal 9 10 # Accepts only non-negative values. 11 framerate = 60 12 13 # 'autosens' will attempt to decrease sensitivity if the bars peak. 1 = on, 0 = off 14 # new as of 0.6.0 autosens of low values (dynamic range) 15 # 'overshoot' allows bars to overshoot (in % of terminal height) without initiating autosens. DEPRECATED as of 0.6.0 16 ; autosens = 1 17 ; overshoot = 20 18 19 # Manual sensitivity in %. If autosens is enabled, this will only be the initial value. 20 # 200 means double height. Accepts only non-negative values. 21 ; sensitivity = 100 22 23 # The number of bars (0-512). 0 sets it to auto (fill up console). 24 # Bars' width and space between bars in number of characters. 25 ; bars = 0 26 ; bar_width = 2 27 ; bar_spacing = 1 28 # bar_height is only used for output in "noritake" format 29 ; bar_height = 32 30 31 # For SDL width and space between bars is in pixels, defaults are: 32 ; bar_width = 20 33 ; bar_spacing = 5 34 35 # sdl_glsl have these default values, they are only used to calulate max number of bars. 36 ; bar_width = 1 37 ; bar_spacing = 0 38 39 40 # Lower and higher cutoff frequencies for lowest and highest bars 41 # the bandwidth of the visualizer. 42 # Note: there is a minimum total bandwidth of 43Mhz x number of bars. 43 # Cava will automatically increase the higher cutoff if a too low band is specified. 44 ; lower_cutoff_freq = 50 45 ; higher_cutoff_freq = 10000 46 47 48 # Seconds with no input before cava goes to sleep mode. Cava will not perform FFT or drawing and 49 # only check for input once per second. Cava will wake up once input is detected. 0 = disable. 50 ; sleep_timer = 0 51 52 53 [input] 54 55 # Audio capturing method. Possible methods are: 'pulse', 'alsa', 'fifo', 'sndio' or 'shmem' 56 # Defaults to 'pulse', 'pipewire', 'alsa' or 'fifo', in that order, dependent on what support cava was built with. 57 # On windows this is automatic and no input settings are needed. 58 # 59 # All input methods uses the same config variable 'source' 60 # to define where it should get the audio. 61 # 62 # For pulseaudio and pipewire 'source' will be the source. Default: 'auto', which uses the monitor source of the default sink 63 # (all pulseaudio sinks(outputs) have 'monitor' sources(inputs) associated with them). 64 # 65 # For piepwire 'source' will be the object name or object.serial of the device to capture from. 66 # Both input and output devices are supported. 67 # 68 # For alsa 'source' will be the capture device. 69 # For fifo 'source' will be the path to fifo-file. 70 # For shmem 'source' will be /squeezelite-AA:BB:CC:DD:EE:FF where 'AA:BB:CC:DD:EE:FF' will be squeezelite's MAC address 71 method = pulse 72 source = auto 73 74 ; method = pipewire 75 ; source = auto 76 77 ; method = alsa 78 ; source = hw:Loopback,1 79 80 ; method = fifo 81 ; source = /tmp/mpd.fifo 82 ; sample_rate = 44100 83 ; sample_bits = 16 84 85 ; method = shmem 86 ; source = /squeezelite-AA:BB:CC:DD:EE:FF 87 88 ; method = portaudio 89 ; source = auto 90 91 92 [output] 93 94 # Output method. Can be 'ncurses', 'noncurses', 'raw', 'noritake', 'sdl' 95 # or 'sdl_glsl'. 96 # 'noncurses' uses a custom framebuffer technique and prints only changes 97 # from frame to frame in the terminal. 'ncurses' is default if supported. 98 # 99 # 'raw' is an 8 or 16 bit (configurable via the 'bit_format' option) data 100 # stream of the bar heights that can be used to send to other applications. 101 # 'raw' defaults to 200 bars, which can be adjusted in the 'bars' option above. 102 # 103 # 'noritake' outputs a bitmap in the format expected by a Noritake VFD display 104 # in graphic mode. It only support the 3000 series graphical VFDs for now. 105 # 106 # 'sdl' uses the Simple DirectMedia Layer to render in a graphical context. 107 # 'sdl_glsl' uses SDL to create an OpenGL context. Write your own shaders or 108 # use one of the predefined ones. 109 ; method = ncurses 110 111 # Orientation of the visualization. Can be 'bottom', 'top', 'left' or 'right'. 112 # Default is 'bottom'. Other orientations are only supported on sdl and ncruses 113 # output. Note: many fonts have weird glyphs for 'top' and 'right' characters, 114 # which can make ncurses not look right. 115 ; orientation = bottom 116 117 # Visual channels. Can be 'stereo' or 'mono'. 118 # 'stereo' mirrors both channels with low frequencies in center. 119 # 'mono' outputs left to right lowest to highest frequencies. 120 # 'mono_option' set mono to either take input from 'left', 'right' or 'average'. 121 # set 'reverse' to 1 to display frequencies the other way around. 122 channels = mono 123 ; mono_option = average 124 ; reverse = 0 125 126 # Raw output target. A fifo will be created if target does not exist. 127 ; raw_target = /dev/stdout 128 129 # Raw data format. Can be 'binary' or 'ascii'. 130 ; data_format = binary 131 132 # Binary bit format, can be '8bit' (0-255) or '16bit' (0-65530). 133 ; bit_format = 16bit 134 135 # Ascii max value. In 'ascii' mode range will run from 0 to value specified here 136 ; ascii_max_range = 1000 137 138 # Ascii delimiters. In ascii format each bar and frame is separated by a delimiters. 139 # Use decimal value in ascii table (i.e. 59 = ';' and 10 = '\n' (line feed)). 140 ; bar_delimiter = 59 141 ; frame_delimiter = 10 142 143 # sdl window size and position. -1,-1 is centered. 144 ; sdl_width = 1000 145 ; sdl_height = 500 146 ; sdl_x = -1 147 ; sdl_y= -1 148 149 # set label on bars on the x-axis. Can be 'frequency' or 'none'. Default: 'none' 150 # 'frequency' displays the lower cut off frequency of the bar above. 151 # Only supported on ncurses and noncurses output. 152 ; xaxis = none 153 154 # enable alacritty synchronized updates. 1 = on, 0 = off 155 # removes flickering in alacritty terminal emulator. 156 # defaults to off since the behaviour in other terminal emulators is unknown 157 ; alacritty_sync = 0 158 159 # Shaders for sdl_glsl, located in $HOME/.config/cava/shaders 160 ; vertex_shader = pass_through.vert 161 ; fragment_shader = bar_spectrum.frag 162 163 ; for glsl output mode, keep rendering even if no audio 164 ; continuous_rendering = 0 165 166 [color] 167 168 # Colors can be one of seven predefined: black, blue, cyan, green, magenta, red, white, yellow. 169 # Or defined by hex code '#xxxxxx' (hex code must be within ''). User defined colors requires 170 # a terminal that can change color definitions such as Gnome-terminal or rxvt. 171 # default is to keep current terminal color 172 ; background = default 173 foreground = blue 174 175 # SDL and sdl_glsl only support hex code colors, these are the default: 176 ; background = '#111111' 177 ; foreground = '#33ffff' 178 179 180 # Gradient mode, only hex defined colors are supported, 181 # background must also be defined in hex or remain commented out. 1 = on, 0 = off. 182 # You can define as many as 8 different colors. They range from bottom to top of screen 183 ; gradient = 0 184 ; gradient_count = 8 185 ; gradient_color_1 = '#59cc33' 186 ; gradient_color_2 = '#80cc33' 187 ; gradient_color_3 = '#a6cc33' 188 ; gradient_color_4 = '#cccc33' 189 ; gradient_color_5 = '#cca633' 190 ; gradient_color_6 = '#cc8033' 191 ; gradient_color_7 = '#cc5933' 192 ; gradient_color_8 = '#cc3333' 193 194 195 196 [smoothing] 197 198 # Percentage value for integral smoothing. Takes values from 0 - 100. 199 # Higher values means smoother, but less precise. 0 to disable. 200 # DEPRECATED as of 0.8.0, use noise_reduction instead 201 ; integral = 77 202 203 # Disables or enables the so-called "Monstercat smoothing" with or without "waves". Set to 0 to disable. 204 ; monstercat = 0 205 ; waves = 0 206 207 # Set gravity percentage for "drop off". Higher values means bars will drop faster. 208 # Accepts only non-negative values. 50 means half gravity, 200 means double. Set to 0 to disable "drop off". 209 # DEPRECATED as of 0.8.0, use noise_reduction instead 210 ; gravity = 100 211 212 213 # In bar height, bars that would have been lower that this will not be drawn. 214 # DEPRECATED as of 0.8.0 215 ; ignore = 0 216 217 # Noise reduction, int 0 - 100. default 77 218 # the raw visualization is very noisy, this factor adjusts the integral and gravity filters to keep the signal smooth 219 # 100 will be very slow and smooth, 0 will be fast but noisy. 220 noise_reduction = 50 221 222 223 [eq] 224 225 # This one is tricky. You can have as much keys as you want. 226 # Remember to uncomment more than one key! More keys = more precision. 227 # Look at readme.md on github for further explanations and examples. 228 ; 1 = 1 # bass 229 ; 2 = 1 230 ; 3 = 1 # midtone 231 ; 4 = 1 232 ; 5 = 1 # treble