mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-01-24 14:58:44 +01:00
reload: Call oomox last.
This commit is contained in:
parent
deffe200c5
commit
1d9925f454
@ -143,6 +143,10 @@ def process_args(args):
|
||||
if args.o:
|
||||
util.disown([args.o])
|
||||
|
||||
if not args.e:
|
||||
reload.oomox()
|
||||
reload.gtk()
|
||||
|
||||
|
||||
def main():
|
||||
"""Main script function."""
|
||||
|
@ -29,8 +29,8 @@ def xrdb(xrdb_files=None):
|
||||
subprocess.run(["xrdb", "-merge", "-nocpp", file])
|
||||
|
||||
|
||||
def gtk():
|
||||
"""Move gtkrc files to the correct location."""
|
||||
def oomox():
|
||||
"""Call oomox to generate a theme."""
|
||||
oomox_file = os.path.join(CACHE_DIR, "colors-oomox")
|
||||
|
||||
if shutil.which("oomox-cli"):
|
||||
@ -38,6 +38,9 @@ def gtk():
|
||||
subprocess.run(["oomox-cli", "-o", "wal", oomox_file],
|
||||
stdout=subprocess.DEVNULL)
|
||||
|
||||
|
||||
def gtk():
|
||||
"""Reload GTK theme on the fly."""
|
||||
# Here we call a Python 2 script to reload the GTK themes.
|
||||
# This is done because the Python 3 GTK/Gdk libraries don't
|
||||
# provide a way of doing this.
|
||||
@ -81,7 +84,6 @@ def colors(cache_dir=CACHE_DIR):
|
||||
def env(xrdb_file=None):
|
||||
"""Reload environment."""
|
||||
xrdb(xrdb_file)
|
||||
gtk()
|
||||
i3()
|
||||
sway()
|
||||
polybar()
|
||||
|
Loading…
Reference in New Issue
Block a user