You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
486 B
20 lines
486 B
#!/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/"$//'
|