summaryrefslogtreecommitdiff
path: root/pywal/reload.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-07-23 10:57:33 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-07-23 10:57:33 +1000
commit377cc7e68ce2576ad928fdd6efb40cabdf0f19dc (patch)
tree43fa2d6c67fab5d46b3fb8e170ba0aa36913054d /pywal/reload.py
parentbd5611e35cba2cfa0a57f3f854ed157638da3c95 (diff)
api: Changed export arguments.
Diffstat (limited to 'pywal/reload.py')
-rw-r--r--pywal/reload.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/pywal/reload.py b/pywal/reload.py
index da09fe0..2648a70 100644
--- a/pywal/reload.py
+++ b/pywal/reload.py
@@ -9,7 +9,7 @@ from .settings import __cache_dir__
from . import util
-def reload_xrdb(cache_dir):
+def xrdb(cache_dir):
"""Merge the colors into the X db so new terminals use them."""
if shutil.which("xrdb"):
subprocess.call(["xrdb", "-merge", cache_dir / "colors.Xresources"],
@@ -17,13 +17,13 @@ def reload_xrdb(cache_dir):
stderr=subprocess.DEVNULL)
-def reload_i3():
+def i3():
"""Reload i3 colors."""
if shutil.which("i3-msg"):
util.disown("i3-msg", "reload")
-def reload_polybar():
+def polybar():
"""Reload polybar colors."""
if shutil.which("polybar"):
util.disown("pkill", "-USR1", "polybar")
@@ -31,9 +31,9 @@ def reload_polybar():
def env(cache_dir=__cache_dir__):
"""Reload environment."""
- reload_xrdb(cache_dir)
- reload_i3()
- reload_polybar()
+ xrdb(cache_dir)
+ i3()
+ polybar()
print("reload: Reloaded environment.")