diff options
| author | Dylan Araps <dylanaraps@users.noreply.github.com> | 2017-07-23 18:47:37 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-23 18:47:37 +1000 |
| commit | 8d7728db582ce3608beabaedcf2ff94b216bb8fb (patch) | |
| tree | 060cd1093d3badd5b4ca991bdf0f138245737da7 /pywal/__main__.py | |
| parent | 72d0ca4e2f4be7969498b226af4243315f2dff0c (diff) | |
| parent | bc97a5e165326da6bb9c9a5bb7b58d40f4cd594e (diff) | |
Merge pull request #54 from dylanaraps/alpha
general: Add back -a to support transparency in URxvt.
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) |
