mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-01-09 15:38:30 +01:00
gtk: Added oomox support.
This commit is contained in:
parent
7a6e2ed0f9
commit
7d59ae5e85
@ -31,11 +31,11 @@ def xrdb(xrdb_files=None):
|
||||
|
||||
def gtk():
|
||||
"""Move gtkrc files to the correct location."""
|
||||
theme_path = os.path.join(HOME, ".themes", "Flatabulous-wal")
|
||||
gtk2_file = os.path.join(CACHE_DIR, "colors-gtk2.rc")
|
||||
oomox_file = os.path.join(CACHE_DIR, "colors-oomox")
|
||||
|
||||
if os.path.isdir(theme_path):
|
||||
shutil.copy(gtk2_file, os.path.join(theme_path, "gtk-2.0"))
|
||||
if shutil.which("oomox-cli"):
|
||||
print("reload: Waiting for oomox...")
|
||||
subprocess.run(["oomox-cli", oomox_file], stdout=subprocess.DEVNULL)
|
||||
|
||||
# Here we call a Python 2 script to reload the GTK themes.
|
||||
# This is done because the Python 3 GTK/Gdk libraries don't
|
||||
@ -79,8 +79,8 @@ def colors(cache_dir=CACHE_DIR):
|
||||
|
||||
def env(xrdb_file=None):
|
||||
"""Reload environment."""
|
||||
gtk()
|
||||
xrdb(xrdb_file)
|
||||
gtk()
|
||||
i3()
|
||||
sway()
|
||||
polybar()
|
||||
|
@ -1,19 +0,0 @@
|
||||
gtk-color-scheme = "background: {background}"
|
||||
gtk-color-scheme = "foreground: {foreground}"
|
||||
|
||||
gtk-color-scheme = "color0: {color0}"
|
||||
gtk-color-scheme = "color1: {color1}"
|
||||
gtk-color-scheme = "color2: {color2}"
|
||||
gtk-color-scheme = "color3: {color3}"
|
||||
gtk-color-scheme = "color4: {color4}"
|
||||
gtk-color-scheme = "color5: {color5}"
|
||||
gtk-color-scheme = "color6: {color6}"
|
||||
gtk-color-scheme = "color7: {color7}"
|
||||
gtk-color-scheme = "color8: {color8}"
|
||||
gtk-color-scheme = "color9: {color9}"
|
||||
gtk-color-scheme = "color10: {color10}"
|
||||
gtk-color-scheme = "color11: {color11}"
|
||||
gtk-color-scheme = "color12: {color12}"
|
||||
gtk-color-scheme = "color13: {color13}"
|
||||
gtk-color-scheme = "color14: {color14}"
|
||||
gtk-color-scheme = "color15: {color15}"
|
Loading…
Reference in New Issue
Block a user