pi requirements.txt

This commit is contained in:
2023-01-17 16:19:13 +01:00
parent 62fc2188b3
commit 31302bed1d
4 changed files with 8 additions and 14 deletions
+1 -2
View File
@@ -81,8 +81,7 @@ def set_pixels(color):
# @click.option("-v", help="Set HEX Color as base visualizer color: -v ffffff")
def main(arg):
if arg == ():
path = os.path.expanduser("~/.config/lc/gui.py")
proc = subprocess.Popen(["python", "-m", "streamlit", "run", path, "--server.headless", "True"], stdout=subprocess.PIPE)
proc = subprocess.Popen(["python", "-m", "streamlit", "run", "/var/lib/lc/gui.py", "--server.headless", "True"], stdout=subprocess.PIPE)
for line in proc.stdout:
if line == b' You can now view your Streamlit app in your browser.\n':
break
+3 -2
View File
@@ -1,5 +1,6 @@
sudo cp controller.py /bin/lc
mkdir -p ~/.config/lc
cp cava.conf ~/.config/lc/cava.conf
sudo chmod 666 ~/.config/lc/cava.conf
cp gui.py ~/.config/lc/gui.py
sudo mkdir -p /var/lib/lc
sudo cp gui.py controller.py /var/lib/lc/
sudo ln -s /var/lib/lc/controller.py /bin/lc