mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-05-19 15:50:50 +02:00
Merge aa19db9c46
into 236aa48e74
This commit is contained in:
commit
d39607f89f
@ -57,12 +57,17 @@ 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")
|
||||
])
|
||||
and util.get_pid("kitty")):
|
||||
if os.getenv('TERM') == 'xterm-kitty':
|
||||
subprocess.call([
|
||||
"kitty", "@", "set-colors", "--all",
|
||||
os.path.join(CACHE_DIR, "colors-kitty.conf")
|
||||
])
|
||||
else:
|
||||
subprocess.call([
|
||||
"kitty", "@", "--to", "unix:/tmp/kitty_pywal", "set-colors", "--all",
|
||||
os.path.join(CACHE_DIR, "colors-kitty.conf")
|
||||
])
|
||||
|
||||
|
||||
def polybar():
|
||||
|
Loading…
Reference in New Issue
Block a user