aboutsummaryrefslogtreecommitdiffstats
path: root/readme.md
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--readme.md41
1 files changed, 35 insertions, 6 deletions
diff --git a/readme.md b/readme.md
index eb465ff..f9ec78f 100644
--- a/readme.md
+++ b/readme.md
@@ -86,18 +86,47 @@ cd ducky
![Ducky Shell](assets/screenshots/ducky.png)
-![Focus view with the bottom bar hidden](assets/screenshots/customized.png)
+![Glacier](assets/screenshots/glacier.png)
+
+![Paper](assets/screenshots/paper.png)
# Features
-- Default violet theme, JetBrainsMono Nerd Font Mono, and a two-line Bash prompt with Git branch and exit status. Install the font for the matching appearance.
+- Default warm amber theme, JetBrainsMono Nerd Font Mono, and a two-line Bash prompt with Git branch and exit status. Install the font for the matching appearance.
- Native Rust + GPUI rendering; PTY-backed login shell, ANSI/256/truecolor, alternate screen, Unicode and IME input.
- Integrated draggable tab bar with window controls and resize edges.
-- `Ctrl+Shift+B` hides or restores the bottom bar; set `show_status_bar = false` in Lua to keep it hidden at launch. Change `status_bar_toggle` to customize the shortcut.
-- Tabs: `Ctrl+Shift+T` opens, `Ctrl+Shift+W` closes, `Ctrl+Tab` cycles.
-- Mouse selection, `Ctrl+Shift+C` copies selection (or visible screen), `Ctrl+Shift+V` pastes with bracketed-paste support.
+- `Ctrl+B` hides or restores the bottom bar; set `show_status_bar = false` in Lua to keep it hidden at launch. Remap `toggle_status` in the Lua `shortcuts` table to change the shortcut.
+- Tabs: `Ctrl+T` opens, `Ctrl+W` closes the active tab, `Alt+1`–`Alt+9` selects a tab (`Alt+0` selects tab 10), and `Ctrl+Tab` cycles. Close any tab with its × button or middle-click.
+- `Ctrl+C` copies without interrupting the foreground process. `Ctrl+Alt+C` sends the terminal interrupt.
+- Mouse selection, `Ctrl+C` copies selection (or visible screen), `Ctrl+V` pastes with bracketed-paste support.
- Mouse-wheel scrollback and `Shift+PageUp` / `Shift+PageDown`.
- Lua 5.4 configuration in your platform's config directory under `ducky/config.lua` (paths above), created on first launch. Lua modules can live alongside it.
- Customize fonts, spacing, colors, ANSI palette, window dimensions, shell arguments, environment, startup commands, and shortcuts. The generated config contains examples. Lua scripts run with your user permissions.
-- `Ctrl+Shift+R` reloads appearance and bindings; new tabs pick up shell/environment changes. `Ctrl+Shift++` / `Ctrl+Shift+-` changes font size.
+- `Ctrl+R` reloads appearance and bindings; new tabs pick up shell/environment changes. `Ctrl+=` / `Ctrl+-` changes font size.
- `ducky --check-config` validates Lua; `ducky --config-dir` prints its location.
+
+Application shortcuts are configured in Lua separately from raw terminal byte bindings:
+
+```lua
+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',
+ ['alt-1'] = 'tab:1',
+ ['alt-2'] = 'tab:2',
+ -- Also: next_tab, previous_tab, font_larger, font_smaller, scroll_up, scroll_down.
+}
+```
+
+The `shortcuts` table replaces the default map when supplied. `bindings` sends raw strings and takes priority over application shortcuts. Press your reload shortcut after editing the config.
+
+Bundled themes: `ember`, `glacier`, `paper`, and `lagoon`. To apply a theme while keeping your other settings, use a local `config` table and end your Lua file with:
+
+```lua
+for key, value in pairs(require('themes.glacier')) do config[key] = value end
+return config
+```