aboutsummaryrefslogtreecommitdiffstats
path: root/assets/config.lua
blob: 3a0190d8c88bcac706d128321e7868650819dbec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
-- Ducky runs this file on startup. Reload with Cmd+R on macOS or Ctrl+R elsewhere.
-- Full Lua 5.4 is available. Only run scripts you trust.
-- Your appearance is editable here; bundled themes: ember, glacier, paper, lagoon.
-- You can compute settings with Lua and require modules beside this file.
local home = os.getenv('HOME')
return {
  font = 'JetBrainsMono Nerd Font Mono',
  font_size = 16,
  line_height = 24,
  padding = 30,
  background = '#171411',
  foreground = '#dfd1bb',
  accent = '#e7ad72',
  surface = '#29231c',
  muted = '#8d7a66',
  border = '#49382a',
  show_status_bar = true,
  -- GPUI keystroke -> application action. Remove or remap any entry.
  -- On macOS, ctrl means Command except with Tab. The alt modifier means Option.
  shortcuts = {
    ['ctrl-t']='new_tab', ['ctrl-w']='close_tab',
    ['ctrl-c']='copy', ['ctrl-v']='paste', ['ctrl-alt-c']='interrupt',
    ['ctrl-r']='reload', ['ctrl-b']='toggle_status',
    ['ctrl-tab']='next_tab', ['ctrl-shift-tab']='previous_tab',
    ['ctrl-=']='font_larger', ['ctrl--']='font_smaller',
    ['shift-pageup']='scroll_up', ['shift-pagedown']='scroll_down',
    ['alt-1']='tab:1', ['alt-2']='tab:2', ['alt-3']='tab:3',
    ['alt-4']='tab:4', ['alt-5']='tab:5', ['alt-6']='tab:6',
    ['alt-7']='tab:7', ['alt-8']='tab:8', ['alt-9']='tab:9', ['alt-0']='tab:10',
  },
  width = 1100,
  height = 720,
  scrollback = 10000,
  shell = '/bin/bash',
  args = { '--rcfile', ducky.config_dir .. '/shell.bash', '-i' },
  cwd = home,
  env = { COLORTERM = 'truecolor' },
  -- Send any command or escape sequence using a custom shortcut.
  -- Keystrokes use the same modifier rules as shortcuts.
  bindings = {
    ['ctrl-g'] = 'git status\r',
    ['ctrl-h'] = 'cd ~\r',
  },
  -- Palette indices 0..15 (normal and bright ANSI colors).
  palette = {
    '#29231c', '#d98375', '#b1bd8b', '#e4c387', '#a1b5b1', '#e7ad72', '#9ec5b4', '#dfd1bb', '#877364', '#eba293', '#c9d3a8', '#f0d6a6', '#bed0c9', '#f1c69d', '#bcdfcd', '#f4e9d7'
  },
  -- Optional startup customization (for example require your own modules).
  -- startup = 'printf "Welcome to Ducky\\n"\r',
}