diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-07-23 18:37:05 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-07-23 18:42:54 +1000 |
| commit | 83a0f6945d08124a1c763151ce4f7f65443414f9 (patch) | |
| tree | 5cd8b61874d998e11c432d6488e525cec818992a /pywal/__main__.py | |
| parent | 72d0ca4e2f4be7969498b226af4243315f2dff0c (diff) | |
general: Add -a to support terminal transparency.
Diffstat (limited to 'pywal/__main__.py')
| -rw-r--r-- | pywal/__main__.py | 7 |
1 files changed, 7 insertions, 0 deletions
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) |
