From 83a0f6945d08124a1c763151ce4f7f65443414f9 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 23 Jul 2017 18:37:05 +1000 Subject: general: Add -a to support terminal transparency. --- pywal/__main__.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pywal/__main__.py') diff --git a/pywal/__main__.py b/pywal/__main__.py index 0af4df6..566ff95 100644 --- a/pywal/__main__.py +++ b/pywal/__main__.py @@ -29,6 +29,10 @@ def get_args(): description = "wal - Generate colorschemes on the fly" arg = argparse.ArgumentParser(description=description) + arg.add_argument("-a", metavar="\"alpha\"", + help="Set terminal background transparency. \ + *Only works in URxvt*") + arg.add_argument("-c", action="store_true", help="Delete all cached colorschemes.") @@ -86,6 +90,9 @@ def process_args(args): if args.r: reload.colors(args.t) + if args.a: + util.Color.alpha_num = args.a + if args.i: image_file = image.get(args.i) colors_plain = colors.get(image_file, notify=not args.q) -- cgit v1.2.3