diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2018-04-01 09:34:34 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2018-04-01 09:34:34 +1000 |
| commit | 400e7d0c42af803dd5ac4bd5bedc6a65f7298eb4 (patch) | |
| tree | e0175b631d42a54cf5230a01cf965e264a6cd8a8 /pywal/sequences.py | |
| parent | 40454ff0c642b13b9cfcd114dfeb1c71829227db (diff) | |
| parent | e25bc9e2d895f3bbf157cceaf7077c463369ad59 (diff) | |
general: rebase
Diffstat (limited to 'pywal/sequences.py')
| -rw-r--r-- | pywal/sequences.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pywal/sequences.py b/pywal/sequences.py index ecb79e3..0376342 100644 --- a/pywal/sequences.py +++ b/pywal/sequences.py @@ -73,7 +73,7 @@ def create_sequences(colors): return "".join(sequences) -def send(colors, cache_dir=CACHE_DIR): +def send(colors, cache_dir=CACHE_DIR, to_send=True): """Send colors to all open terminals.""" if OS == "Darwin": tty_pattern = "/dev/ttys00[0-9]*" @@ -84,8 +84,9 @@ def send(colors, cache_dir=CACHE_DIR): sequences = create_sequences(colors) # Writing to "/dev/pts/[0-9] lets you send data to open terminals. - for term in glob.glob(tty_pattern): - util.save_file(sequences, term) + if to_send: + for term in glob.glob(tty_pattern): + util.save_file(sequences, term) util.save_file(sequences, os.path.join(cache_dir, "sequences")) print("colors: Set terminal colors.") |
