mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-01-26 15:59:10 +01:00
general: Remove -t
This commit is contained in:
parent
57e6ef173d
commit
c0db2e92f1
@ -58,10 +58,6 @@ def get_args(args):
|
|||||||
arg.add_argument("-R", action="store_true",
|
arg.add_argument("-R", action="store_true",
|
||||||
help="Restore previous colorscheme.")
|
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",
|
arg.add_argument("-v", action="store_true",
|
||||||
help="Print \"wal\" version.")
|
help="Print \"wal\" version.")
|
||||||
|
|
||||||
@ -118,7 +114,7 @@ def process_args(args):
|
|||||||
colors_plain["colors"]["color0"] = args.b
|
colors_plain["colors"]["color0"] = args.b
|
||||||
|
|
||||||
if args.i or args.f:
|
if args.i or args.f:
|
||||||
sequences.send(colors_plain, args.t)
|
sequences.send(colors_plain)
|
||||||
|
|
||||||
if not args.n:
|
if not args.n:
|
||||||
wallpaper.change(colors_plain["wallpaper"])
|
wallpaper.change(colors_plain["wallpaper"])
|
||||||
|
@ -39,7 +39,7 @@ def set_iterm_tab_color(color):
|
|||||||
""" % (red, green, blue)
|
""" % (red, green, blue)
|
||||||
|
|
||||||
|
|
||||||
def create_sequences(colors, vte):
|
def create_sequences(colors):
|
||||||
"""Create the escape sequences."""
|
"""Create the escape sequences."""
|
||||||
# Colors 0-15.
|
# Colors 0-15.
|
||||||
sequences = [set_color(index, colors["colors"]["color%s" % index])
|
sequences = [set_color(index, colors["colors"]["color%s" % index])
|
||||||
@ -61,15 +61,14 @@ def create_sequences(colors, vte):
|
|||||||
util.Color.sequences = "".join(sequences)
|
util.Color.sequences = "".join(sequences)
|
||||||
|
|
||||||
# This escape sequence doesn"t work in VTE terminals.
|
# 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)
|
return "".join(sequences)
|
||||||
|
|
||||||
|
|
||||||
def send(colors, vte, cache_dir=CACHE_DIR):
|
def send(colors, cache_dir=CACHE_DIR):
|
||||||
"""Send colors to all open terminals."""
|
"""Send colors to all open terminals."""
|
||||||
sequences = create_sequences(colors, vte)
|
sequences = create_sequences(colors)
|
||||||
|
|
||||||
if OS == "Darwin":
|
if OS == "Darwin":
|
||||||
tty_pattern = "/dev/ttys00[0-9]*"
|
tty_pattern = "/dev/ttys00[0-9]*"
|
||||||
|
Loading…
Reference in New Issue
Block a user