#!/usr/bin/env sh # Returns a JSON string of the current system theme. # Example: # { # "bg": "#272C36", # "bg-alt": "#2E3440", # "fg": "#ECEFF4", # "fg-alt": "#6f7787", # "red": "#BF616A", # "orange": "#EBCB8B", # "yellow": "#81A1C1", # "green": "#A3BE8C", # "cyan": "#81A1C1", # "blue": "#81A1C1", # "violet": "#81A1C1", # "magenta": "#81A1C1" # } emacsclient --no-wait --eval '(json-encode (dotfiles/theme))' | sed "s/\\\\//g" | sed -e 's/^"//' -e 's/"$//'