theme: add nvtop, htop, and cava support (#45)

* templates: add nvtop, htop, and cava support

* Triggers htop and cava theme reloads

Sends a USR2 signal to htop and cava after their themes are applied. This prompts the applications to reload their configuration files, ensuring new themes are visible instantly without requiring a manual restart.
This commit is contained in:
Batuhan Edgüer
2025-08-18 10:18:26 +03:00
committed by GitHub
parent febcc5662a
commit 3e19fd6919
4 changed files with 229 additions and 1 deletions
+57
View File
@@ -0,0 +1,57 @@
# Cava Audio Visualizer Configuration Template
# Optimized for smooth and responsive visualization
[general]
# Number of bars (20-200) - fewer bars = better performance
bars = 64
# Framerate (1-144) - higher = smoother but more CPU intensive
framerate = 60
[input]
# Audio input method: pulse, alsa, fifo, or portaudio
method = pulse
# Audio device (leave as default for auto-detection)
source = auto
[output]
# Output method: ncurses, terminal, raw, or circle
method = ncurses
# Terminal color scheme
style = stereo
[color]
# Color gradient for bars using template variables
gradient = 1
gradient_count = 8
gradient_color_1 = '{{ $green }}'
gradient_color_2 = '{{ $teal }}'
gradient_color_3 = '{{ $sky }}'
gradient_color_4 = '{{ $sapphire }}'
gradient_color_5 = '{{ $blue }}'
gradient_color_6 = '{{ $lavender }}'
gradient_color_7 = '{{ $mauve }}'
gradient_color_8 = '{{ $maroon }}'
[smoothing]
# Noise reduction (0-100) - higher = smoother but less responsive
# 77 is default, 85 provides good balance for smooth visualization
noise_reduction = 85
# Monstercat smoothing (0 or 1) - adds smoothing between adjacent bars
monstercat = 1
# Wave effect (0 or 1) - creates wave-like motion across bars
waves = 0
# Gravity (0-200) - controls how fast bars fall
# 100 = normal gravity, 150 = faster fall, 50 = slower fall
gravity = 120
[eq]
# Equalizer settings for frequency response
# Lower frequencies tend to be louder, so reduce them slightly
1 = 0.8
2 = 0.9
3 = 1.0
4 = 1.1
5 = 1.2