mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-05-20 00:00:53 +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():
|
def kitty():
|
||||||
""" Reload kitty colors. """
|
""" Reload kitty colors. """
|
||||||
if (shutil.which("kitty")
|
if (shutil.which("kitty")
|
||||||
and util.get_pid("kitty")
|
and util.get_pid("kitty")):
|
||||||
and os.getenv('TERM') == 'xterm-kitty'):
|
if os.getenv('TERM') == 'xterm-kitty':
|
||||||
subprocess.call([
|
subprocess.call([
|
||||||
"kitty", "@", "set-colors", "--all",
|
"kitty", "@", "set-colors", "--all",
|
||||||
os.path.join(CACHE_DIR, "colors-kitty.conf")
|
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():
|
def polybar():
|
||||||
|
Loading…
Reference in New Issue
Block a user