I showed you my source code, pls respond
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

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