diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-07-23 18:37:05 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-07-23 18:42:54 +1000 |
| commit | 83a0f6945d08124a1c763151ce4f7f65443414f9 (patch) | |
| tree | 5cd8b61874d998e11c432d6488e525cec818992a /pywal/sequences.py | |
| parent | 72d0ca4e2f4be7969498b226af4243315f2dff0c (diff) | |
general: Add -a to support terminal transparency.
Diffstat (limited to 'pywal/sequences.py')
| -rw-r--r-- | pywal/sequences.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pywal/sequences.py b/pywal/sequences.py index 77eace3..4f14234 100644 --- a/pywal/sequences.py +++ b/pywal/sequences.py @@ -9,6 +9,11 @@ from . import util def set_special(index, color): """Convert a hex color to a special sequence.""" + alpha = util.Color.alpha_num + + if index in [11, 708] and alpha != 100: + return f"\033]{index};[{alpha}]{color}\007" + return f"\033]{index};{color}\007" |
