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:37:05 +1000 |
| commit | 416904b29bf111e3a6270b36de238ef2dbf7bfb4 (patch) | |
| tree | bdcc4d8cb36c17f7adddaec02917da10b81b433c /pywal/__main__.py | |
| parent | 38744ecf3e410d73bd69807e8912e4af33643843 (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) |
