misc: fixes

This commit is contained in:
Dylan Araps 2018-02-04 15:52:24 +11:00
parent 63b6e35cd7
commit 775ceccf3a
2 changed files with 3 additions and 2 deletions

View File

@ -51,7 +51,8 @@ def create_sequences(colors):
sequences.extend([set_special(10, colors["special"]["foreground"], "g"),
set_special(11, colors["special"]["background"], "h"),
set_special(12, colors["colors"]["color1"], "l"),
set_special(13, colors["special"]["foreground"], "l")])
set_special(13, colors["special"]["foreground"], "l"),
set_special(19, colors["special"]["foreground"], "l")])
# This escape sequence doesn't work in VTE terminals and their parsing of
# unknown sequences is garbage so we need to use some escape sequence

View File

@ -146,7 +146,7 @@ def disown(cmd):
def msg(input_msg, notify):
"""Print to the terminal and display a libnotify
notification."""
if notify and shutil.which("notify"):
if notify and shutil.which("notify-send"):
disown(["notify-send", input_msg])
print(input_msg)