general: Remove -t

This commit is contained in:
Dylan Araps 2017-12-27 17:43:47 +11:00
parent 57e6ef173d
commit c0db2e92f1
2 changed files with 5 additions and 10 deletions

View File

@ -58,10 +58,6 @@ def get_args(args):
arg.add_argument("-R", action="store_true",
help="Restore previous colorscheme.")
arg.add_argument("-t", action="store_true",
help="Fix artifacts in VTE Terminals. \
(Termite, xfce4-terminal)")
arg.add_argument("-v", action="store_true",
help="Print \"wal\" version.")
@ -118,7 +114,7 @@ def process_args(args):
colors_plain["colors"]["color0"] = args.b
if args.i or args.f:
sequences.send(colors_plain, args.t)
sequences.send(colors_plain)
if not args.n:
wallpaper.change(colors_plain["wallpaper"])

View File

@ -39,7 +39,7 @@ def set_iterm_tab_color(color):
""" % (red, green, blue)
def create_sequences(colors, vte):
def create_sequences(colors):
"""Create the escape sequences."""
# Colors 0-15.
sequences = [set_color(index, colors["colors"]["color%s" % index])
@ -61,15 +61,14 @@ def create_sequences(colors, vte):
util.Color.sequences = "".join(sequences)
# This escape sequence doesn"t work in VTE terminals.
if not vte:
sequences.append(set_special(708, colors["special"]["background"]))
sequences.append(set_special(708, colors["special"]["background"]))
return "".join(sequences)
def send(colors, vte, cache_dir=CACHE_DIR):
def send(colors, cache_dir=CACHE_DIR):
"""Send colors to all open terminals."""
sequences = create_sequences(colors, vte)
sequences = create_sequences(colors)
if OS == "Darwin":
tty_pattern = "/dev/ttys00[0-9]*"