lqgmeow

Untitled

Apr 12th, 2025
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.12 KB | None | 0 0
  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 = 0
  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 calculate 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: 'fifo', 'portaudio', 'pipewire', 'alsa', 'pulse', 'sndio', 'oss', 'jack' or 'shmem'
  56. # Defaults to 'oss', 'pipewire', 'sndio', 'jack', 'pulse', 'alsa', 'portaudio' or 'fifo', in that order, dependent on what support cava was built with.
  57. # On Mac it defaults to 'portaudio' or 'fifo'
  58. # On windows this is automatic and no input settings are needed.
  59. #
  60. # All input methods uses the same config variable 'source'
  61. # to define where it should get the audio.
  62. #
  63. # For pulseaudio and pipewire 'source' will be the source. Default: 'auto', which uses the monitor source of the default sink
  64. # (all pulseaudio sinks(outputs) have 'monitor' sources(inputs) associated with them).
  65. #
  66. # For pipewire 'source' will be the object name or object.serial of the device to capture from.
  67. # Both input and output devices are supported.
  68. #
  69. # For alsa 'source' will be the capture device.
  70. # For fifo 'source' will be the path to fifo-file.
  71. # 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
  72. #
  73. # For sndio 'source' will be a raw recording audio descriptor or a monitoring sub-device, e.g. 'rsnd/2' or 'snd/1'. Default: 'default'.
  74. # README.md contains further information on how to setup CAVA for sndio.
  75. #
  76. # For oss 'source' will be the path to a audio device, e.g. '/dev/dsp2'. Default: '/dev/dsp', i.e. the default audio device.
  77. # README.md contains further information on how to setup CAVA for OSS on FreeBSD.
  78. #
  79. # For jack 'source' will be the name of the JACK server to connect to, e.g. 'foobar'. Default: 'default'.
  80. # README.md contains further information on how to setup CAVA for JACK.
  81. #
  82. ; method = pulse
  83. ; source = auto
  84.  
  85. ; method = pipewire
  86. ; source = auto
  87.  
  88. ; method = alsa
  89. ; source = hw:Loopback,1
  90.  
  91. ; method = fifo
  92. ; source = /tmp/mpd.fifo
  93.  
  94. ; method = shmem
  95. ; source = /squeezelite-AA:BB:CC:DD:EE:FF
  96.  
  97. ; method = portaudio
  98. ; source = auto
  99.  
  100. ; method = sndio
  101. ; source = default
  102.  
  103. ; method = oss
  104. ; source = /dev/dsp
  105.  
  106. ; method = jack
  107. ; source = default
  108.  
  109. # The options 'sample_rate', 'sample_bits', 'channels' and 'autoconnect' can be configured for some input methods:
  110. # sample_rate: fifo, pipewire, sndio, oss
  111. # sample_bits: fifo, pipewire, sndio, oss
  112. # channels: sndio, oss, jack
  113. # autoconnect: jack
  114. # Other methods ignore these settings.
  115. #
  116. # For 'sndio' and 'oss' they are only preferred values, i.e. if the values are not supported
  117. # by the chosen audio device, the device will use other supported values instead.
  118. # Example: 48000, 32 and 2, but the device only supports 44100, 16 and 1, then it
  119. # will use 44100, 16 and 1.
  120. #
  121. ; sample_rate = 44100
  122. ; sample_bits = 16
  123. ; channels = 2
  124. ; autoconnect = 2
  125.  
  126.  
  127. [output]
  128.  
  129. # Output method. Can be 'ncurses', 'noncurses', 'raw', 'noritake', 'sdl'
  130. # or 'sdl_glsl'.
  131. # 'noncurses' (default) uses a buffer and cursor movements to only print
  132. # changes from frame to frame in the terminal. Uses less resources and is less
  133. # prone to tearing (vsync issues) than 'ncurses'.
  134. #
  135. # 'raw' is an 8 or 16 bit (configurable via the 'bit_format' option) data
  136. # stream of the bar heights that can be used to send to other applications.
  137. # 'raw' defaults to 200 bars, which can be adjusted in the 'bars' option above.
  138. #
  139. # 'noritake' outputs a bitmap in the format expected by a Noritake VFD display
  140. # in graphic mode. It only support the 3000 series graphical VFDs for now.
  141. #
  142. # 'sdl' uses the Simple DirectMedia Layer to render in a graphical context.
  143. # 'sdl_glsl' uses SDL to create an OpenGL context. Write your own shaders or
  144. # use one of the predefined ones.
  145. ; method = noncurses
  146.  
  147. # Orientation of the visualization. Can be 'bottom', 'top', 'left', 'right' or
  148. # 'horizontal'. Default is 'bottom'. 'left and 'right' are only supported on sdl
  149. # and ncruses output. 'horizontal' (bars go up and down from center) is only supported
  150. # on noncurses output.
  151. # Note: many fonts have weird or missing glyphs for characters used in orientations
  152. # other than 'bottom', which can make output not look right.
  153. orientation = horizontal
  154.  
  155. # Visual channels. Can be 'stereo' or 'mono'.
  156. # 'stereo' mirrors both channels with low frequencies in center.
  157. # 'mono' outputs left to right lowest to highest frequencies.
  158. # 'mono_option' set mono to either take input from 'left', 'right' or 'average'.
  159. # set 'reverse' to 1 to display frequencies the other way around.
  160. channels = mono
  161. ; mono_option = average
  162. ; reverse = 0
  163.  
  164. # Raw output target.
  165. # On Linux, a fifo will be created if target does not exist.
  166. # On Windows, a named pipe will be created if target does not exist.
  167. ; raw_target = /dev/stdout
  168.  
  169. # Raw data format. Can be 'binary' or 'ascii'.
  170. ; data_format = binary
  171.  
  172. # Binary bit format, can be '8bit' (0-255) or '16bit' (0-65530).
  173. ; bit_format = 16bit
  174.  
  175. # Ascii max value. In 'ascii' mode range will run from 0 to value specified here
  176. ; ascii_max_range = 1000
  177.  
  178. # Ascii delimiters. In ascii format each bar and frame is separated by a delimiters.
  179. # Use decimal value in ascii table (i.e. 59 = ';' and 10 = '\n' (line feed)).
  180. ; bar_delimiter = 59
  181. ; frame_delimiter = 10
  182.  
  183. # sdl window size and position. -1,-1 is centered.
  184. ; sdl_width = 1000
  185. ; sdl_height = 500
  186. ; sdl_x = -1
  187. ; sdl_y= -1
  188. ; sdl_full_screen = 0
  189.  
  190. # set label on bars on the x-axis. Can be 'frequency' or 'none'. Default: 'none'
  191. # 'frequency' displays the lower cut off frequency of the bar above.
  192. # Only supported on ncurses and noncurses output.
  193. ; xaxis = none
  194.  
  195. # enable synchronized sync. 1 = on, 0 = off
  196. # removes flickering in alacritty terminal emulator.
  197. # defaults to off since the behaviour in other terminal emulators is unknown
  198. ; synchronized_sync = 0
  199.  
  200. # Shaders for sdl_glsl, located in $HOME/.config/cava/shaders
  201. ; vertex_shader = pass_through.vert
  202. ; fragment_shader = bar_spectrum.frag
  203.  
  204. ; for glsl output mode, keep rendering even if no audio
  205. ; continuous_rendering = 0
  206.  
  207. # disable console blank (screen saver) in tty
  208. # (Not supported on FreeBSD)
  209. ; disable_blanking = 0
  210.  
  211. # show a flat bar at the bottom of the screen when idle, 1 = on, 0 = off
  212. ; show_idle_bar_heads = 1
  213.  
  214. # show waveform instead of frequency spectrum, 1 = on, 0 = off
  215. ; waveform = 0
  216.  
  217. [color]
  218.  
  219. # Colors can be one of seven predefined: black, blue, cyan, green, magenta, red, white, yellow.
  220. # Or defined by hex code '#xxxxxx' (hex code must be within ''). User defined colors requires
  221. # a terminal that can change color definitions such as Gnome-terminal or rxvt.
  222. # default is to keep current terminal color
  223. ; background = default
  224. ; foreground = default
  225.  
  226. # SDL and sdl_glsl only support hex code colors, these are the default:
  227. ; background = '#111111'
  228. ; foreground = '#33ffff'
  229.  
  230.  
  231. # Gradient mode, only hex defined colors are supported,
  232. # background must also be defined in hex or remain commented out. 1 = on, 0 = off.
  233. # You can define as many as 8 different colors. They range from bottom to top of screen
  234. ; gradient = 0
  235. ; gradient_color_1 = '#59cc33'
  236. ; gradient_color_2 = '#80cc33'
  237. ; gradient_color_3 = '#a6cc33'
  238. ; gradient_color_4 = '#cccc33'
  239. ; gradient_color_5 = '#cca633'
  240. ; gradient_color_6 = '#cc8033'
  241. ; gradient_color_7 = '#cc5933'
  242. ; gradient_color_8 = '#cc3333'
  243.  
  244.  
  245.  
  246. [smoothing]
  247.  
  248. # Percentage value for integral smoothing. Takes values from 0 - 100.
  249. # Higher values means smoother, but less precise. 0 to disable.
  250. # DEPRECATED as of 0.8.0, use noise_reduction instead
  251. ; integral = 77
  252.  
  253. # Disables or enables the so-called "Monstercat smoothing" with or without "waves". Set to 0 to disable.
  254. ; monstercat = 0
  255. ; waves = 0
  256.  
  257. # Set gravity percentage for "drop off". Higher values means bars will drop faster.
  258. # Accepts only non-negative values. 50 means half gravity, 200 means double. Set to 0 to disable "drop off".
  259. # DEPRECATED as of 0.8.0, use noise_reduction instead
  260. ; gravity = 100
  261.  
  262.  
  263. # In bar height, bars that would have been lower that this will not be drawn.
  264. # DEPRECATED as of 0.8.0
  265. ; ignore = 0
  266.  
  267. # Noise reduction, int 0 - 100. default 77
  268. # the raw visualization is very noisy, this factor adjusts the integral and gravity filters to keep the signal smooth
  269. # 100 will be very slow and smooth, 0 will be fast but noisy.
  270. ; noise_reduction = 77
  271.  
  272.  
  273. [eq]
  274.  
  275. # This one is tricky. You can have as much keys as you want.
  276. # Remember to uncomment more than one key! More keys = more precision.
  277. # Look at readme.md on github for further explanations and examples.
  278. ; 1 = 1 # bass
  279. ; 2 = 1
  280. ; 3 = 1 # midtone
  281. ; 4 = 1
  282. ; 5 = 1 # treble
Add Comment
Please, Sign In to add comment