mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-05-19 15:50:50 +02:00
Pass socket as an argument if reloading kitty from outside
This commit is contained in:
parent
4997a49eb7
commit
aa19db9c46
@ -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