From 4d20ea1e51a24d7b8000529d8f73b9dbd7f262a4 Mon Sep 17 00:00:00 2001 From: dylan araps Date: Mon, 18 Dec 2017 11:34:06 +1100 Subject: general: Added user template support. --- pywal/util.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pywal/util.py') 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.""" -- cgit v1.2.3