diff --git a/README.md b/README.md index 8feddba..a092d75 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,9 @@ Dependencies: Python dependencies: ```pip install -r requirements.txt``` Optional: brotli + +For virtual env just type (ofc after install mpv, fzf, python3): +`./run` ### About cache folder funkwlmpv has to cache tracks before playing (default disabled "enable_persistent_cache"). Cache is persistent and you should manage it manually because the (script/program) can't clean it automatically. diff --git a/run b/run new file mode 100755 index 0000000..af616c6 --- /dev/null +++ b/run @@ -0,0 +1,12 @@ +#!/bin/bash + +if [ ! -d env_fw ]; then + python3 -m venv env_fw + . env_fw/bin/activate + pip3 install -r requirements.txt || pip install -r requirements.txt || exit 1 + ./funkwlmpv +else + . env_fw/bin/activate + ./funkwlmpv +fi +