diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2018-01-03 09:14:13 +1100 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2018-01-03 09:14:13 +1100 |
| commit | dd17579437fcb18bc3dc326ee750117d9fbafe31 (patch) | |
| tree | baf1737927dd4a42424efc36919ca4e45f2b5073 /pywal/reload.py | |
| parent | aadb4709318380b9612aa802e5873bc988a42f66 (diff) | |
colors: Set colors in linux tty.
Diffstat (limited to 'pywal/reload.py')
| -rw-r--r-- | pywal/reload.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pywal/reload.py b/pywal/reload.py index 65b43bb..ea1fb99 100644 --- a/pywal/reload.py +++ b/pywal/reload.py @@ -10,6 +10,14 @@ from .settings import CACHE_DIR, HOME, MODULE_DIR, OS from . import util +def tty(): + """Load colors in tty.""" + tty_script = os.path.join(CACHE_DIR, "colors-tty.sh") + + if os.path.isfile(tty_script): + subprocess.Popen([tty_script]) + + def xrdb(xrdb_files=None): """Merge the colors into the X db so new terminals use them.""" xrdb_files = xrdb_files or \ @@ -77,3 +85,4 @@ def env(xrdb_file=None): sway() polybar() print("reload: Reloaded environment.") + tty() |
