Reload config in parent kitty when running the themes kitten
This commit is contained in:
parent
9e2590eb15
commit
4645e78fa7
@ -8,6 +8,7 @@ import json
|
|||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
|
import signal
|
||||||
import tempfile
|
import tempfile
|
||||||
import zipfile
|
import zipfile
|
||||||
from contextlib import suppress
|
from contextlib import suppress
|
||||||
@ -257,6 +258,8 @@ class Theme:
|
|||||||
with open(confpath + '.bak', 'w') as f:
|
with open(confpath + '.bak', 'w') as f:
|
||||||
f.write(raw)
|
f.write(raw)
|
||||||
atomic_save(nraw.encode('utf-8'), confpath)
|
atomic_save(nraw.encode('utf-8'), confpath)
|
||||||
|
if 'KITTY_PID' in os.environ:
|
||||||
|
os.kill(int(os.environ['KITTY_PID']), signal.SIGUSR1)
|
||||||
|
|
||||||
|
|
||||||
class Themes:
|
class Themes:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user