diff options
| author | duckyriley <[email protected]> | 2026-11-23 20:45:44 +0800 |
|---|---|---|
| committer | duckyriley <[email protected]> | 2026-11-23 20:45:44 +0800 |
| commit | 24d7f554d00901841810b856b44d5763cbc5bd76 (patch) | |
| tree | 740eb685f70937a014a6c5e5a7fa09b51f19bac0 /assets/config.lua | |
| download | ducky-24d7f554d00901841810b856b44d5763cbc5bd76.tar.gz ducky-24d7f554d00901841810b856b44d5763cbc5bd76.zip | |
Build native GPUI shell with Lua customization and riced defaults
Diffstat (limited to 'assets/config.lua')
| -rw-r--r-- | assets/config.lua | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/assets/config.lua b/assets/config.lua new file mode 100644 index 0000000..0a5694f --- /dev/null +++ b/assets/config.lua @@ -0,0 +1,41 @@ +-- Ducky runs this file on startup; Ctrl+Shift+R reloads it. +-- Full Lua 5.4 is available. Only run scripts you trust. +-- Try the bundled theme after installation: return require('themes.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 = 15, + line_height = 21, + padding = 26, + background = '#141218', + foreground = '#ded7e8', + accent = '#c4a7e7', + surface = '#211d29', + muted = '#82758f', + border = '#393041', + show_status_bar = true, + status_bar_toggle = 'ctrl-shift-b', + width = 1100, + height = 720, + scrollback = 10000, + shell = '/bin/bash', + args = { '--rcfile', (os.getenv('XDG_CONFIG_HOME') or home .. '/.config') .. '/ducky/shell.bash', '-i' }, + cwd = home, + env = { COLORTERM = 'truecolor' }, + -- Send any command or escape sequence using a custom shortcut. + -- Keystrokes use GPUI syntax: ctrl-shift-g, alt-h, etc. + bindings = { + ['ctrl-shift-g'] = 'git status\r', + ['ctrl-shift-h'] = 'cd ~\r', + }, + -- Palette indices 0..15 (normal and bright ANSI colors). + palette = { + '#211d29', '#eb8b9c', '#a6d5b0', '#e8c997', + '#9bbae8', '#c4a7e7', '#97d5cf', '#d4cbdc', + '#71657e', '#f5a5b6', '#c1e7c8', '#f2dbb8', + '#b8d1f4', '#dec4f4', '#b5e7e1', '#f1eaf6', + }, + -- Optional startup customization (for example require your own modules). + -- startup = 'printf "Welcome to Ducky\\n"\r', +} |