From 83a0f6945d08124a1c763151ce4f7f65443414f9 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 23 Jul 2017 18:37:05 +1000 Subject: general: Add -a to support terminal transparency. --- pywal/sequences.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pywal/sequences.py') 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" -- cgit v1.2.3