diff options
| author | duckyriley <[email protected]> | 2026-11-23 21:21:22 +0800 |
|---|---|---|
| committer | duckyriley <[email protected]> | 2026-11-23 21:21:22 +0800 |
| commit | 9ef7ba021629c9fa3e111798c61b35a02dfaae20 (patch) | |
| tree | 599fad203f9588be81eb71a79dd57a67e6c01b26 /assets | |
| parent | d5901ef3de6c3c8c60e7aca7610ab5eb2d4bbaa5 (diff) | |
| download | ducky-9ef7ba021629c9fa3e111798c61b35a02dfaae20.tar.gz ducky-9ef7ba021629c9fa3e111798c61b35a02dfaae20.zip | |
Fix inactive tab closing and add Lua shortcut actions and themes
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/config.lua | 46 | ||||
| -rw-r--r-- | assets/screenshots/customized.png | bin | 17235 -> 20920 bytes | |||
| -rw-r--r-- | assets/screenshots/ducky.png | bin | 21853 -> 24654 bytes | |||
| -rw-r--r-- | assets/screenshots/ember.png | bin | 0 -> 24654 bytes | |||
| -rw-r--r-- | assets/screenshots/glacier.png | bin | 0 -> 21149 bytes | |||
| -rw-r--r-- | assets/screenshots/paper.png | bin | 0 -> 24687 bytes | |||
| -rw-r--r-- | assets/shell.bash | 10 | ||||
| -rw-r--r-- | assets/themes/ember.lua | 13 | ||||
| -rw-r--r-- | assets/themes/glacier.lua | 13 | ||||
| -rw-r--r-- | assets/themes/paper.lua | 13 |
10 files changed, 71 insertions, 24 deletions
diff --git a/assets/config.lua b/assets/config.lua index 65de5ea..64a0f39 100644 --- a/assets/config.lua +++ b/assets/config.lua @@ -1,21 +1,32 @@ --- Ducky runs this file on startup; Ctrl+Shift+R reloads it. +-- Ducky runs this file on startup; Ctrl+R reloads it. -- Full Lua 5.4 is available. Only run scripts you trust. --- Try the bundled theme after installation: return require('themes.lagoon') +-- 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 = 15, - line_height = 21, - padding = 26, - background = '#141218', - foreground = '#ded7e8', - accent = '#c4a7e7', - surface = '#211d29', - muted = '#82758f', - border = '#393041', + font_size = 16, + line_height = 24, + padding = 30, + background = '#171411', + foreground = '#dfd1bb', + accent = '#e7ad72', + surface = '#29231c', + muted = '#8d7a66', + border = '#49382a', show_status_bar = true, - status_bar_toggle = 'ctrl-shift-b', + -- GPUI keystroke -> application action. Remove or remap any entry. + 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, @@ -24,17 +35,14 @@ return { 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. + -- Keystrokes use GPUI syntax: ctrl-g, alt-h, etc. bindings = { - ['ctrl-shift-g'] = 'git status\r', - ['ctrl-shift-h'] = 'cd ~\r', + ['ctrl-g'] = 'git status\r', + ['ctrl-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', + '#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', diff --git a/assets/screenshots/customized.png b/assets/screenshots/customized.png Binary files differindex 9fac024..ca06364 100644 --- a/assets/screenshots/customized.png +++ b/assets/screenshots/customized.png diff --git a/assets/screenshots/ducky.png b/assets/screenshots/ducky.png Binary files differindex 523a943..ceadd5f 100644 --- a/assets/screenshots/ducky.png +++ b/assets/screenshots/ducky.png diff --git a/assets/screenshots/ember.png b/assets/screenshots/ember.png Binary files differnew file mode 100644 index 0000000..ceadd5f --- /dev/null +++ b/assets/screenshots/ember.png diff --git a/assets/screenshots/glacier.png b/assets/screenshots/glacier.png Binary files differnew file mode 100644 index 0000000..32e178b --- /dev/null +++ b/assets/screenshots/glacier.png diff --git a/assets/screenshots/paper.png b/assets/screenshots/paper.png Binary files differnew file mode 100644 index 0000000..f73eb15 --- /dev/null +++ b/assets/screenshots/paper.png diff --git a/assets/shell.bash b/assets/shell.bash index d36d1e5..fc4404b 100644 --- a/assets/shell.bash +++ b/assets/shell.bash @@ -3,12 +3,12 @@ _ducky_prompt() { local status=$? branch branch=$(git symbolic-ref --quiet --short HEAD 2>/dev/null) || branch='' - PS1=$'\n\[\e[38;2;196;167;231m\]╭─ ' - PS1+='\[\e[38;2;222;215;232m\]\w' + PS1=$'\n\[\e[35m\]╭─ ' + PS1+='\[\e[0m\]\w' _ducky_branch=$branch - [[ -n $branch ]] && PS1+=' \[\e[38;2;151;213;207m\]⎇ ${_ducky_branch}' - [[ $status -ne 0 ]] && PS1+=" \[\e[38;2;235;139;156m\]${status}" - PS1+=$'\n\[\e[38;2;196;167;231m\]╰─❯ \[\e[0m\]' + [[ -n $branch ]] && PS1+=' \[\e[36m\]⎇ ${_ducky_branch}' + [[ $status -ne 0 ]] && PS1+=" \[\e[31m\]${status}" + PS1+=$'\n\[\e[35m\]╰─❯ \[\e[0m\]' } # Keep other prompt hooks, then set Ducky's prompt last. if declare -p PROMPT_COMMAND 2>/dev/null | grep -q 'declare -a'; then diff --git a/assets/themes/ember.lua b/assets/themes/ember.lua new file mode 100644 index 0000000..e7bb1dc --- /dev/null +++ b/assets/themes/ember.lua @@ -0,0 +1,13 @@ +-- Apply from config.lua with require('themes.ember'). +return { + background = '#171411', + foreground = '#dfd1bb', + surface = '#29231c', + accent = '#e7ad72', + muted = '#8d7a66', + border = '#49382a', + font_size = 16, + line_height = 24, + padding = 30, + palette = { '#29231c', '#d98375', '#b1bd8b', '#e4c387', '#a1b5b1', '#e7ad72', '#9ec5b4', '#dfd1bb', '#877364', '#eba293', '#c9d3a8', '#f0d6a6', '#bed0c9', '#f1c69d', '#bcdfcd', '#f4e9d7' }, +} diff --git a/assets/themes/glacier.lua b/assets/themes/glacier.lua new file mode 100644 index 0000000..358d2a2 --- /dev/null +++ b/assets/themes/glacier.lua @@ -0,0 +1,13 @@ +-- Apply from config.lua with require('themes.glacier'). +return { + background = '#101923', + foreground = '#d6e6f0', + surface = '#1b2c3b', + accent = '#89c9ef', + muted = '#6d8ca4', + border = '#2e495e', + font_size = 15, + line_height = 23, + padding = 28, + palette = { '#1b2c3b', '#ed8e9c', '#a5d6bd', '#e5cf9b', '#89c9ef', '#a6bdf3', '#87ddd7', '#d6e6f0', '#66859c', '#f3a8b2', '#bee5d0', '#f1dfb5', '#acdfff', '#c3d2ff', '#aff2e9', '#f2f9ff' }, +} diff --git a/assets/themes/paper.lua b/assets/themes/paper.lua new file mode 100644 index 0000000..96802d2 --- /dev/null +++ b/assets/themes/paper.lua @@ -0,0 +1,13 @@ +-- Apply from config.lua with require('themes.paper'). +return { + background = '#eee8dc', + foreground = '#403b34', + surface = '#e1d8c8', + accent = '#9c5738', + muted = '#8a7c68', + border = '#cbbb9f', + font_size = 16, + line_height = 25, + padding = 32, + palette = { '#403b34', '#a9433f', '#57734c', '#966d29', '#466c89', '#9c5738', '#367b75', '#d8cebc', '#8a7c68', '#bf5c50', '#6b895c', '#b98c3c', '#6288a4', '#b67550', '#57948d', '#faf6ed' }, +} |