brewtarget 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #!/usr/bin/env bash
  2. set -eu
  3. TMP_XRESOURCES=$(mktemp --suffix='brewtarget-xresources')
  4. cat > "$TMP_XRESOURCES" <<OK
  5. Xft.dpi: 96
  6. Xft.autohint: 0
  7. Xft.lcdfilter: lcddefault
  8. Xft.hintstyle: hintfull
  9. Xft.hinting: 1
  10. Xft.antialias: 1
  11. Xft.rgba: rgb
  12. #define S_base03 #fdf6e3
  13. #define S_base02 #eee8d5
  14. #define S_base01 #93a1a1
  15. #define S_base00 #839496
  16. #define S_base0 #657b83
  17. #define S_base1 #586e75
  18. #define S_base2 #073642
  19. #define S_base3 #002b36
  20. #define S_yellow #b58900
  21. #define S_orange #cb4b16
  22. #define S_red #dc322f
  23. #define S_magenta #d33682
  24. #define S_violet #6c71c4
  25. #define S_blue #268bd2
  26. #define S_cyan #2aa198
  27. #define S_green #859900
  28. *background: S_base03
  29. *foreground: S_base0
  30. *fading: 40
  31. *fadeColor: S_base03
  32. *cursorColor: S_base1
  33. *pointerColorBackground: S_base01
  34. *pointerColorForeground: S_base1
  35. *color0: S_base02
  36. *color1: S_red
  37. *color2: S_green
  38. *color3: S_yellow
  39. *color4: S_blue
  40. *color5: S_magenta
  41. *color6: S_cyan
  42. *color7: S_base2
  43. *color8: S_base03
  44. *color9: S_orange
  45. *color10: S_base01
  46. *color11: S_base00
  47. *color12: S_base0
  48. *color13: S_violet
  49. *color14: S_base1
  50. *color15: S_base3
  51. OK
  52. xrdb "$TMP_XRESOURCES"
  53. /usr/bin/brewtarget "$@" &
  54. XRDB_OPTIONS=''
  55. [ -r "$HOME/.hacksrc" ] && . "$HOME/.hacksrc"
  56. [ -f "$HOME/.Xresources" ] && xrdb $XRDB_OPTIONS "$HOME/.Xresources"