summaryrefslogtreecommitdiff
path: root/pywal/magic.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-07-21 11:19:17 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-07-21 11:19:17 +1000
commit3d1f11b1bd70b17567808849fd9eb3346599bb53 (patch)
tree888ac4c6b6661bce618fd6a6a892433b89ef5712 /pywal/magic.py
parent950b7e892a98675616653bcabe405d9203691c6e (diff)
util: Add new msg function.
Diffstat (limited to 'pywal/magic.py')
-rw-r--r--pywal/magic.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/pywal/magic.py b/pywal/magic.py
index 3443113..9dc528c 100644
--- a/pywal/magic.py
+++ b/pywal/magic.py
@@ -69,9 +69,7 @@ def get_colors(img, cache_dir, color_count, quiet):
print("colors: Found cached colorscheme.")
else:
- print("colors: Generating a colorscheme...")
- if not quiet:
- util.disown("notify-send", "wal: Generating a colorscheme...")
+ util.msg("wal: Generating a colorscheme...", quiet)
# Generate the colors.
colors = gen_colors(img, color_count)
@@ -79,10 +77,7 @@ def get_colors(img, cache_dir, color_count, quiet):
# Cache the colorscheme.
util.save_file_json(colors, cache_file)
-
- print("colors: Generated colorscheme")
- if not quiet:
- util.disown("notify-send", "wal: Generation complete.")
+ util.msg("wal: Generation complete.", quiet)
return colors