diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-07-27 10:40:28 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-07-27 10:40:28 +1000 |
| commit | 017547ff0a1dad869133c81d184a4a94f76b8f87 (patch) | |
| tree | 222887f3788db3f67018037190eb61408bde8ade /pywal | |
| parent | 238d07ce4172316ab8eb95bdb8524f5e3d6e4fed (diff) | |
args: Added -b to set custom background color
Diffstat (limited to 'pywal')
| -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 0935916..98cafe4 100644 --- a/pywal/__main__.py +++ b/pywal/__main__.py @@ -33,6 +33,9 @@ def get_args(args): help="Set terminal background transparency. \ *Only works in URxvt*") + arg.add_argument("-b", metavar="background", + help="Custom background color to use.") + arg.add_argument("-c", action="store_true", help="Delete all cached colorschemes.") @@ -100,6 +103,10 @@ def process_args(args): if args.f: colors_plain = colors.file(args.f) + if args.b: + colors_plain["special"]["background"] = args.b + colors_plain["colors"]["color0"] = args.b + if args.i or args.f: sequences.send(colors_plain, args.t) |
