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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
# Build
Rust 1.94 or newer, Python 3, Git, and Bash are required. Linux also needs a Vulkan-capable graphics driver; macOS uses Metal. Install the dependencies for your system below, then follow **Build and install**.
## Ubuntu / Debian / Linux Mint / Pop!_OS
```sh
sudo apt install build-essential git curl python3 pkg-config cmake clang libclang-dev \
libfontconfig1-dev libfreetype-dev libxkbcommon-dev libxkbcommon-x11-dev \
libwayland-dev libssl-dev libzstd-dev libxcb1-dev vulkan-tools
```
## Arch Linux / EndeavourOS / Manjaro
```sh
sudo pacman -Syu --needed base-devel git curl python pkgconf cmake clang \
fontconfig freetype2 libxkbcommon libxkbcommon-x11 wayland openssl zstd \
libxcb vulkan-icd-loader vulkan-tools ttf-jetbrains-mono-nerd
```
Install your GPU's Vulkan driver as well: `vulkan-radeon` for AMD, `vulkan-intel` for Intel, or the appropriate NVIDIA driver for your GPU. Manjaro users should use their distribution's driver tools.
## Fedora
```sh
sudo dnf install gcc gcc-c++ make git curl python3 pkgconf-pkg-config cmake \
clang clang-devel fontconfig-devel freetype-devel libxkbcommon-devel \
libxkbcommon-x11-devel wayland-devel openssl-devel libzstd-devel \
libxcb-devel vulkan-loader vulkan-tools
```
## openSUSE Tumbleweed
```sh
sudo zypper install gcc gcc-c++ make git curl python3 pkg-config cmake clang \
clang-devel fontconfig-devel freetype2-devel libxkbcommon-devel \
libxkbcommon-x11-devel wayland-devel libopenssl-3-devel libzstd-devel \
libxcb-devel vulkan-tools
```
## macOS (Apple Silicon or Intel)
Install and open [Xcode](https://developer.apple.com/xcode/) with the macOS components, then select its developer tools:
```sh
xcode-select --install
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -license accept
```
With [Homebrew](https://brew.sh/) installed:
```sh
brew install cmake pkgconf python git
```
If Xcode reports that the Metal toolchain is missing, run `xcodebuild -downloadComponent MetalToolchain` before building. Build on the Mac you will run Ducky on; the script builds for the host architecture.
## Build and install
Install Rust using [rustup](https://rustup.rs/) if needed:
```sh
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
. "$HOME/.cargo/env"
rustup update stable
```
Clone the repository and run the installer:
```sh
git clone https://github.com/OrielProject/ducky.git
cd ducky
./build.sh
```
`./build.sh` builds the release binary, installs `~/.local/bin/ducky`, and adds that directory to your shell's PATH. Open a new terminal to use `ducky`.
- **Linux:** installs **Ducky Shell** in your desktop app launcher. Configuration is in `~/.config/ducky/`.
- **macOS:** installs `~/Applications/Ducky.app` for Finder or Spotlight. Configuration is in `~/Library/Application Support/ducky/`. You can launch it with `open "$HOME/Applications/Ducky.app"`.
- Set `XDG_CONFIG_HOME` to override the configuration root on either platform. Existing configuration files are preserved.
- Use `./build.sh --debug` for a development build, or `cargo build --locked` to build without installing.
- For the default appearance, install **JetBrainsMono Nerd Font Mono** from [Nerd Fonts](https://www.nerdfonts.com/font-downloads), or set `font` in `config.lua` to an installed monospace font. Arch's command above includes the font.
# Screenshots



# Features
- 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+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+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
```
|