general: Remove -a

This commit is contained in:
Dylan Araps 2017-12-29 07:32:25 +11:00
parent 266dacf3df
commit 5c30ffb436
4 changed files with 6 additions and 14 deletions

View File

@ -29,10 +29,6 @@ def get_args(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("-b", metavar="background",
help="Custom background color to use.")
@ -104,9 +100,6 @@ def process_args(args):
scheme_dir = os.path.join(CACHE_DIR, "schemes")
shutil.rmtree(scheme_dir, ignore_errors=True)
if args.a:
util.Color.alpha_num = args.a
if args.R:
image_file = os.path.join(CACHE_DIR, "wal")

View File

@ -0,0 +1,2 @@
URxvt*background: [100]{background}
URxvt*borderColor: [100]{background}

View File

@ -7,13 +7,13 @@ emacs*background: {background}
URxvt*foreground: {foreground}
XTerm*foreground: {foreground}
UXTerm*foreground: {foreground}
URxvt*background: {background.alpha}
URxvt*background: {background}
XTerm*background: {background}
UXTerm*background: {background}
URxvt*cursorColor: {cursor}
XTerm*cursorColor: {cursor}
UXTerm*cursorColor: {cursor}
URxvt*borderColor: {background.alpha}
URxvt*borderColor: {background}
! Colors 0-15.
*.color0: {color0}
@ -64,3 +64,5 @@ XClock*secondColor: rgba:{color15.xrgba}
! Set depth to make transparency work.
URxvt*depth: 32
#include "colors-urxvt.Xresources"

View File

@ -28,11 +28,6 @@ class Color:
"""Convert a hex color to xrdb rgba."""
return hex_to_xrgba(self.hex_color)
@property
def alpha(self):
"""Add URxvt alpha value to color."""
return "[%s]%s" % (self.alpha_num, self.hex_color)
@property
def strip(self):
"""Strip '#' from color."""