diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-06-21 19:48:04 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-06-21 19:48:04 +1000 |
| commit | f6a1a3964ad790a40f97d5656d6e5c302a1ee926 (patch) | |
| tree | 4a733d58e2a2bbdc009251f612ac64ccbc458596 | |
| parent | 9c42c281d9049d9d2b1c127151f43e4e06178618 (diff) | |
colors: Make the call to xrdb blocking
| -rwxr-xr-x | wal | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -94,12 +94,11 @@ def process_args(args): # -i if args.i: image = str(get_image(args.i)) - colors = get_colors(image) - # Set the wallpaper. if not args.n: set_wallpaper(image) + colors = get_colors(image) return colors @@ -449,7 +448,7 @@ def export_xrdb(colors, export_file): save_colors(colors, export_file, "xrdb colors") # Merge the colors into the X db so new terminals use them. - subprocess.Popen(["xrdb", "-merge", export_file]) + subprocess.call(["xrdb", "-merge", export_file]) def export_colors(colors): @@ -457,11 +456,6 @@ def export_colors(colors): export_plain(colors) save_colors(ColorType.shell, CACHE_DIR / "colors.sh", "shell variables") - # X based colors. - export_rofi(colors) - export_emacs(colors) - export_xrdb(ColorType.xrdb, CACHE_DIR / "xcolors") - # Web based colors. ColorType.css.append("}\n") save_colors(ColorType.css, CACHE_DIR / "colors.css", "css variables") @@ -470,6 +464,11 @@ def export_colors(colors): # Text editor based colors. save_colors(ColorType.putty, CACHE_DIR / "colors-putty.reg", "putty theme") + # X based colors. + export_rofi(colors) + export_emacs(colors) + export_xrdb(ColorType.xrdb, CACHE_DIR / "xcolors") + # }}} |
