add global cava.conf

This commit is contained in:
Lucca Ketterer 2020-08-02 15:16:55 +02:00
parent 1c9ae5f083
commit 25b10a935d
3 changed files with 4 additions and 3 deletions

View File

@ -1,2 +1,3 @@
install :
cp client.py /bin/lc
cp client.py /bin/lc; mkdir -p /etc/lc; cp cava.conf /etc/lc/cava.conf; sudo chmod 666 /etc/lc/cava.conf

View File

@ -112,7 +112,7 @@ foreground = red
# Percentage value for integral smoothing. Takes values from 0 - 100.
# Higher values means smoother, but less precise. 0 to disable.
integral = 5
integral = 1
# Disables or enables the so-called "Monstercat smoothing" with or without "waves". Set to 0 to disable.
monstercat = 1

View File

@ -37,7 +37,7 @@ def helpmenu():
print("-v visualizer")
def visualizer(color):
cava = subprocess.Popen(["cava", "-p", "./cava.conf"], stdout=subprocess.PIPE)
cava = subprocess.Popen(["cava", "-p", "/etc/lc/cava.conf"], stdout=subprocess.PIPE)
sed = subprocess.Popen(["sed", "-u", "s/;.*;$//"], stdin=cava.stdout, stdout=subprocess.PIPE)
#subprocess.Popen([sys.argv[0]], stdin=sed.stdout, shell=False)
for line in sed.stdout: