mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-01-24 23:09:16 +01:00
misc: cleanup
This commit is contained in:
parent
311fbf2b6c
commit
385dcb6887
@ -120,7 +120,7 @@ def get(img, light=False, backend="wal", cache_dir=CACHE_DIR):
|
|||||||
logging.info("Found cached colorscheme.")
|
logging.info("Found cached colorscheme.")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
logging.info("Generating a colorscheme...")
|
logging.info("Generating a colorscheme.")
|
||||||
backend = get_backend(backend)
|
backend = get_backend(backend)
|
||||||
|
|
||||||
# Dynamically import the backend we want to use.
|
# Dynamically import the backend we want to use.
|
||||||
|
@ -33,12 +33,12 @@ def oomox(gen_theme):
|
|||||||
"""Call oomox to generate a theme."""
|
"""Call oomox to generate a theme."""
|
||||||
if gen_theme:
|
if gen_theme:
|
||||||
if not shutil.which("oomox-cli"):
|
if not shutil.which("oomox-cli"):
|
||||||
logging.warning("Oomox not found, skipping...")
|
logging.warning("Oomox not found, skipping.")
|
||||||
return
|
return
|
||||||
|
|
||||||
oomox_file = os.path.join(CACHE_DIR, "colors-oomox")
|
oomox_file = os.path.join(CACHE_DIR, "colors-oomox")
|
||||||
|
|
||||||
logging.info("Waiting for oomox...")
|
logging.info("Waiting for Oomox.")
|
||||||
subprocess.run(["oomox-cli", "-o", "wal", oomox_file],
|
subprocess.run(["oomox-cli", "-o", "wal", oomox_file],
|
||||||
stdout=subprocess.DEVNULL)
|
stdout=subprocess.DEVNULL)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user