mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-02-18 03:01:03 +01:00
colors: Fix bug with i3 titlebars not being the right color.
This commit is contained in:
parent
9ddf1c9758
commit
6d48f5fb6b
@ -8,20 +8,20 @@ from pywal.settings import CACHE_DIR
|
|||||||
from pywal import util
|
from pywal import util
|
||||||
|
|
||||||
|
|
||||||
def reload_i3():
|
|
||||||
"""Reload i3 colors."""
|
|
||||||
if shutil.which("i3-msg"):
|
|
||||||
util.disown("i3-msg", "reload")
|
|
||||||
|
|
||||||
|
|
||||||
def reload_xrdb():
|
def reload_xrdb():
|
||||||
"""Merge the colors into the X db so new terminals use them."""
|
"""Merge the colors into the X db so new terminals use them."""
|
||||||
if shutil.which("xrdb"):
|
if shutil.which("xrdb"):
|
||||||
subprocess.call(["xrdb", "-merge", CACHE_DIR / "colors.Xresources"])
|
subprocess.call(["xrdb", "-merge", CACHE_DIR / "colors.Xresources"])
|
||||||
|
|
||||||
|
|
||||||
|
def reload_i3():
|
||||||
|
"""Reload i3 colors."""
|
||||||
|
if shutil.which("i3-msg"):
|
||||||
|
util.disown("i3-msg", "reload")
|
||||||
|
|
||||||
|
|
||||||
def reload_env():
|
def reload_env():
|
||||||
"""Reload environment programs."""
|
"""Reload environment programs."""
|
||||||
reload_i3()
|
|
||||||
reload_xrdb()
|
reload_xrdb()
|
||||||
|
reload_i3()
|
||||||
print("reload: Reloaded environment.")
|
print("reload: Reloaded environment.")
|
||||||
|
Loading…
Reference in New Issue
Block a user