wezterm.lua 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. local wezterm = require 'wezterm'
  2. local config = {}
  3. if wezterm.config_builder then
  4. config = wezterm.config_builder()
  5. end
  6. config.font = wezterm.font 'JetBrainsMono Nerd Font'
  7. config.enable_tab_bar = false
  8. config.colors = {
  9. foreground = '#e4e1e6',
  10. background = '#1b1b1f',
  11. -- Overrides the cell background color when the current cell is occupied by the
  12. -- cursor and the cursor style is set to Block
  13. cursor_bg = '#add8e6',
  14. -- Overrides the text color when the current cell is occupied by the cursor
  15. cursor_fg = 'black',
  16. -- Specifies the border color of the cursor when the cursor style is set to Block,
  17. -- or the color of the vertical or horizontal bar when the cursor style is set to
  18. -- Bar or Underline.
  19. cursor_border = '#add8e6',
  20. -- the foreground color of selected text
  21. selection_fg = 'black',
  22. -- the background color of selected text
  23. selection_bg = '#fffacd',
  24. -- The color of the scrollbar "thumb"; the portion that represents the current viewport
  25. scrollbar_thumb = '#222222',
  26. -- The color of the split lines between panes
  27. split = '#444444',
  28. ansi = {
  29. '#3b4252',
  30. '#bf616a',
  31. '#a3be8c',
  32. '#ebcb8b',
  33. '#81a1c1',
  34. '#b48ead',
  35. '#88c0d0',
  36. '#e5e9f0',
  37. },
  38. brights = {
  39. '#4c566a',
  40. '#bf616a',
  41. '#a3be8c',
  42. '#ebcb8b',
  43. '#81a1c1',
  44. '#b48ead',
  45. '#8fbcbb',
  46. '#eceff4',
  47. },
  48. -- Arbitrary colors of the palette in the range from 16 to 255
  49. indexed = { [136] = '#af8700' },
  50. }
  51. config.cursor_blink_rate = 0
  52. config.disable_default_key_bindings = true
  53. config.keys = {
  54. {
  55. key = 'c',
  56. mods = 'ALT',
  57. action = wezterm.action.CopyTo('Clipboard'),
  58. },
  59. {
  60. key = 'v',
  61. mods ='ALT',
  62. action = wezterm.action.PasteFrom('Clipboard')
  63. },
  64. {
  65. key = 'k',
  66. mods = 'ALT|SHIFT',
  67. action = wezterm.action.IncreaseFontSize
  68. },
  69. {
  70. key = 'j',
  71. mods = 'ALT|SHIFT',
  72. action = wezterm.action.DecreaseFontSize
  73. },
  74. {
  75. key = '0',
  76. mods = 'ALT',
  77. action = wezterm.action.ResetFontSize
  78. },
  79. {
  80. key = 'u',
  81. mods = 'ALT',
  82. action = wezterm.action.ScrollByPage(-1)
  83. },
  84. {
  85. key = 'd',
  86. mods = 'ALT',
  87. action = wezterm.action.ScrollByPage(1)
  88. },
  89. {
  90. key = 'k',
  91. mods = 'ALT',
  92. action = wezterm.action.ScrollByLine(-1)
  93. },
  94. {
  95. key = 'j',
  96. mods = 'ALT',
  97. action = wezterm.action.ScrollByLine(1)
  98. },
  99. {
  100. key = 'f',
  101. mods = 'ALT',
  102. action = wezterm.action.Search { CaseInSensitiveString = '' },
  103. },
  104. }
  105. return config