My build of suckless st terminal
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.

71 lines
1.1 KiB

  1. #define SHELL "/bin/bash"
  2. #define TAB 8
  3. #define FONT "6x13"
  4. #define BOLDFONT FONT"bold"
  5. #define BORDER 3
  6. #define LINESPACE 0 /* additional pixel between each line */
  7. /* Terminal colors */
  8. static const char *colorname[] = {
  9. "black",
  10. "red",
  11. "green",
  12. "yellow",
  13. "blue",
  14. "magenta",
  15. "cyan",
  16. "white",
  17. };
  18. /* Default colors (colorname index) */
  19. /* foreground, background, cursor, visual bell */
  20. #define DefaultFG 7
  21. #define DefaultBG 0
  22. #define DefaultCS 1
  23. #define BellCol DefaultFG
  24. /* special keys */
  25. static Key key[] = {
  26. { XK_Delete, "\033[3~" },
  27. { XK_Home, "\033[1~" },
  28. { XK_End, "\033[4~" },
  29. { XK_Prior, "\033[5~" },
  30. { XK_Next, "\033[6~" },
  31. };
  32. static char gfx[] = {
  33. ['}'] = 'f',
  34. ['.'] = 'v',
  35. [','] = '<',
  36. ['+'] = '>',
  37. ['-'] = '^',
  38. ['h'] = '#',
  39. ['~'] = 'o',
  40. ['a'] = ':',
  41. ['f'] = '\\',
  42. ['`'] = '+',
  43. ['z'] = '>',
  44. ['{'] = '*',
  45. ['q'] = '-',
  46. ['i'] = '#',
  47. ['n'] = '+',
  48. ['y'] = '<',
  49. ['m'] = '+',
  50. ['j'] = '+',
  51. ['|'] = '!',
  52. ['g'] = '#',
  53. ['o'] = '~',
  54. ['p'] = '-',
  55. ['r'] = '-',
  56. ['s'] = '_',
  57. ['0'] = '#',
  58. ['w'] = '+',
  59. ['u'] = '+',
  60. ['t'] = '+',
  61. ['v'] = '+',
  62. ['l'] = '+',
  63. ['k'] = '+',
  64. ['x'] = '|',
  65. [255] = 0,
  66. };