summaryrefslogtreecommitdiff
path: root/pywal
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2018-02-04 16:18:36 +1100
committerDylan Araps <dylan.araps@gmail.com>2018-02-04 16:18:36 +1100
commit4090ada879c20874ea63e58690903f536aba9fa3 (patch)
treef45ad340b5e36db50a27dc6d1c0a1e0dead1d768 /pywal
parent775ceccf3a4f22ec01e2b6a9280d60d0c4b1a8af (diff)
util: Remove broken notifications
Diffstat (limited to 'pywal')
-rw-r--r--pywal/colors.py6
-rw-r--r--pywal/util.py10
2 files changed, 3 insertions, 13 deletions
diff --git a/pywal/colors.py b/pywal/colors.py
index ff0b956..3109a34 100644
--- a/pywal/colors.py
+++ b/pywal/colors.py
@@ -100,7 +100,7 @@ def create_palette(img, colors, light):
def get(img, cache_dir=CACHE_DIR,
- color_count=COLOR_COUNT, light=False, notify=False):
+ color_count=COLOR_COUNT, light=False):
"""Get the colorscheme."""
# home_dylan_img_jpg_1.2.2.json
color_type = "light" if light else "dark"
@@ -114,13 +114,13 @@ def get(img, cache_dir=CACHE_DIR,
print("colors: Found cached colorscheme.")
else:
- util.msg("wal: Generating a colorscheme...", notify)
+ print("wal: Generating a colorscheme...")
colors = gen_colors(img, color_count)
colors = create_palette(img, colors, light)
util.save_file_json(colors, cache_file)
- util.msg("wal: Generation complete.", notify)
+ print("wal: Generation complete.")
return colors
diff --git a/pywal/util.py b/pywal/util.py
index 1302e13..acca2f7 100644
--- a/pywal/util.py
+++ b/pywal/util.py
@@ -4,7 +4,6 @@ Misc helper functions.
import colorsys
import json
import os
-import shutil
import subprocess
@@ -141,12 +140,3 @@ def disown(cmd):
subprocess.Popen(cmd,
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL)
-
-
-def msg(input_msg, notify):
- """Print to the terminal and display a libnotify
- notification."""
- if notify and shutil.which("notify-send"):
- disown(["notify-send", input_msg])
-
- print(input_msg)