diff options
| author | dylan araps <dylan.araps@gmail.com> | 2017-12-18 11:34:06 +1100 |
|---|---|---|
| committer | dylan araps <dylan.araps@gmail.com> | 2017-12-18 11:34:06 +1100 |
| commit | 4d20ea1e51a24d7b8000529d8f73b9dbd7f262a4 (patch) | |
| tree | b386d21fc88d9a99a5f67822c29a4817829b99fa /pywal/util.py | |
| parent | a8a761fea17f33d2f336a205bcc2bc60caf44c4e (diff) | |
general: Added user template support.
Diffstat (limited to 'pywal/util.py')
| -rw-r--r-- | pywal/util.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pywal/util.py b/pywal/util.py index c609f71..37df3a8 100644 --- a/pywal/util.py +++ b/pywal/util.py @@ -33,6 +33,11 @@ class Color: """Add URxvt alpha value to color.""" return "[%s]%s" % (self.alpha_num, self.hex_color) + @property + def strip(self): + """Strip '#' from color.""" + return self.hex_color[1:] + def read_file(input_file): """Read data from a file and trim newlines.""" |
