mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-06-24 19:41:25 +02:00
misc: cleanup
This commit is contained in:
parent
7db89a3907
commit
4492587c17
@ -104,6 +104,14 @@ def process_args(args):
|
|||||||
reload.colors()
|
reload.colors()
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
|
if args.f == "list_themes":
|
||||||
|
themes = os.listdir(os.path.join(CONF_DIR, "colorschemes"))
|
||||||
|
themes += os.listdir(os.path.join(MODULE_DIR, "colorschemes"))
|
||||||
|
themes = [theme.replace(".json", "") for theme in themes]
|
||||||
|
|
||||||
|
print("Themes:", ", ".join(themes))
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
if args.q:
|
if args.q:
|
||||||
sys.stdout = sys.stderr = open(os.devnull, "w")
|
sys.stdout = sys.stderr = open(os.devnull, "w")
|
||||||
|
|
||||||
@ -124,15 +132,6 @@ def process_args(args):
|
|||||||
image_file = image.get(args.i)
|
image_file = image.get(args.i)
|
||||||
colors_plain = colors.get(image_file, light=args.l)
|
colors_plain = colors.get(image_file, light=args.l)
|
||||||
|
|
||||||
if args.f == "list_themes":
|
|
||||||
themes = os.listdir(os.path.join(CONF_DIR, "colorschemes"))
|
|
||||||
themes += os.listdir(os.path.join(MODULE_DIR, "colorschemes"))
|
|
||||||
|
|
||||||
print("Themes:",
|
|
||||||
", ".join([theme.replace(".json", "") for theme in themes]))
|
|
||||||
|
|
||||||
sys.exit(0)
|
|
||||||
|
|
||||||
if args.f:
|
if args.f:
|
||||||
colors_plain = colors.file(args.f)
|
colors_plain = colors.file(args.f)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user