diff options
| author | Dylan Araps <dylanaraps@users.noreply.github.com> | 2017-07-23 18:47:37 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-23 18:47:37 +1000 |
| commit | 8d7728db582ce3608beabaedcf2ff94b216bb8fb (patch) | |
| tree | 060cd1093d3badd5b4ca991bdf0f138245737da7 /pywal/sequences.py | |
| parent | 72d0ca4e2f4be7969498b226af4243315f2dff0c (diff) | |
| parent | bc97a5e165326da6bb9c9a5bb7b58d40f4cd594e (diff) | |
Merge pull request #54 from dylanaraps/alpha
general: Add back -a to support transparency in URxvt.
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" |
