mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-02-18 03:01:03 +01:00
misc: cleanup
This commit is contained in:
parent
7db89a3907
commit
4492587c17
@ -104,6 +104,14 @@ def process_args(args):
|
||||
reload.colors()
|
||||
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:
|
||||
sys.stdout = sys.stderr = open(os.devnull, "w")
|
||||
|
||||
@ -124,15 +132,6 @@ def process_args(args):
|
||||
image_file = image.get(args.i)
|
||||
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:
|
||||
colors_plain = colors.file(args.f)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user