Shorten lines for Travis CI

This commit is contained in:
Djent- 2019-05-02 14:14:48 -07:00 committed by GitHub
parent 04413ee285
commit b78bf719e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,8 +56,13 @@ def bspwm():
def kitty():
""" Reload kitty colors. """
if shutil.which("kitty") and util.get_pid("kitty") and os.getenv('TERM') == 'xterm-kitty':
subprocess.call(["kitty", "@", "set-colors", "--all", os.path.join(CACHE_DIR, "colors-kitty.conf")])
if (shutil.which("kitty")
and util.get_pid("kitty")
and os.getenv('TERM') == 'xterm-kitty'):
subprocess.call([
"kitty", "@", "set-colors", "--all",
os.path.join(CACHE_DIR, "colors-kitty.conf")
])
def polybar():