mirror of
https://github.com/dylanaraps/pywal.git
synced 2024-11-28 19:03:17 +01:00
oomox: Removed oomox support. Use wpgtk
This commit is contained in:
parent
1e416a18a8
commit
8486495c1e
@ -65,9 +65,6 @@ def get_args():
|
||||
arg.add_argument("-i", metavar="\"/path/to/img.jpg\"",
|
||||
help="Which image or directory to use.")
|
||||
|
||||
arg.add_argument("-g", action="store_true",
|
||||
help="Generate an oomox theme.")
|
||||
|
||||
arg.add_argument("-l", action="store_true",
|
||||
help="Generate a light colorscheme.")
|
||||
|
||||
@ -192,7 +189,6 @@ def parse_args(parser):
|
||||
util.disown([cmd])
|
||||
|
||||
if not args.e:
|
||||
reload.oomox(args.g)
|
||||
reload.gtk()
|
||||
|
||||
|
||||
|
@ -29,23 +29,6 @@ def xrdb(xrdb_files=None):
|
||||
subprocess.run(["xrdb", "-merge", "-quiet", file])
|
||||
|
||||
|
||||
def oomox(gen_theme):
|
||||
"""Call oomox to generate a theme."""
|
||||
if gen_theme:
|
||||
if not shutil.which("oomox-cli"):
|
||||
logging.warning("Oomox not found, skipping.")
|
||||
return
|
||||
|
||||
oomox_file = os.path.join(CACHE_DIR, "colors-oomox")
|
||||
|
||||
logging.info("Waiting for Oomox.")
|
||||
subprocess.run(["oomox-cli", "-o", "wal", oomox_file],
|
||||
stdout=subprocess.DEVNULL)
|
||||
|
||||
else:
|
||||
logging.info("Use -g to generate an oomox theme.")
|
||||
|
||||
|
||||
def gtk():
|
||||
"""Reload GTK theme on the fly."""
|
||||
# Here we call a Python 2 script to reload the GTK themes.
|
||||
|
Loading…
Reference in New Issue
Block a user