summaryrefslogtreecommitdiff
path: root/pywal/sequences.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-07-23 18:37:05 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-07-23 18:37:05 +1000
commit416904b29bf111e3a6270b36de238ef2dbf7bfb4 (patch)
treebdcc4d8cb36c17f7adddaec02917da10b81b433c /pywal/sequences.py
parent38744ecf3e410d73bd69807e8912e4af33643843 (diff)
general: Add -a to support terminal transparency.
Diffstat (limited to 'pywal/sequences.py')
-rw-r--r--pywal/sequences.py5
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"