mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-06-25 12:01:48 +02:00
general: Remove -a
This commit is contained in:
parent
266dacf3df
commit
5c30ffb436
@ -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")
|
||||
|
||||
|
2
pywal/templates/colors-urxvt.Xresources
Normal file
2
pywal/templates/colors-urxvt.Xresources
Normal file
@ -0,0 +1,2 @@
|
||||
URxvt*background: [100]{background}
|
||||
URxvt*borderColor: [100]{background}
|
@ -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"
|
||||
|
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user