mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-05-31 06:56:13 +02:00
args: Added -b to set custom background color
This commit is contained in:
parent
238d07ce41
commit
017547ff0a
@ -1,5 +1,6 @@
|
|||||||
[BASIC]
|
[BASIC]
|
||||||
good-names=i3
|
good-names=i3
|
||||||
|
disable=R0912
|
||||||
|
|
||||||
[SIMILARITIES]
|
[SIMILARITIES]
|
||||||
ignore-imports=yes
|
ignore-imports=yes
|
||||||
|
@ -33,6 +33,9 @@ def get_args(args):
|
|||||||
help="Set terminal background transparency. \
|
help="Set terminal background transparency. \
|
||||||
*Only works in URxvt*")
|
*Only works in URxvt*")
|
||||||
|
|
||||||
|
arg.add_argument("-b", metavar="background",
|
||||||
|
help="Custom background color to use.")
|
||||||
|
|
||||||
arg.add_argument("-c", action="store_true",
|
arg.add_argument("-c", action="store_true",
|
||||||
help="Delete all cached colorschemes.")
|
help="Delete all cached colorschemes.")
|
||||||
|
|
||||||
@ -100,6 +103,10 @@ def process_args(args):
|
|||||||
if args.f:
|
if args.f:
|
||||||
colors_plain = colors.file(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:
|
if args.i or args.f:
|
||||||
sequences.send(colors_plain, args.t)
|
sequences.send(colors_plain, args.t)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user