general: Fixed invoking pywal from hotkey. Closes #219

This commit is contained in:
Dylan Araps 2018-04-02 07:15:29 +10:00
parent 086f418648
commit b649563eba
2 changed files with 5 additions and 2 deletions

View File

@ -160,7 +160,10 @@ def process_args(args):
wallpaper.change(colors_plain["wallpaper"])
sequences.send(colors_plain, to_send=not args.s)
colors.palette()
if sys.stdout.isatty():
colors.palette()
export.every(colors_plain)
if not args.e:

View File

@ -25,7 +25,7 @@ def gen_colors(img):
if len(raw_colors) >= 8:
break
elif i == 19:
elif i == 10:
logging.error("ColorThief couldn't generate a suitable palette.")
sys.exit(1)