diff options
Diffstat (limited to 'readme.md')
| -rw-r--r-- | readme.md | 79 |
1 files changed, 75 insertions, 4 deletions
@@ -1,15 +1,86 @@ # Build -Linux (Ubuntu/Debian), Rust 1.94 or newer, Python 3, and a Vulkan-capable graphics driver: +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 pkg-config cmake clang libclang-dev \ +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`, adds that directory to your shell's PATH, and installs **Ducky Shell** in your desktop app launcher. Open a new terminal to use `ducky`. Use `./build.sh --debug` for a development build, or `cargo build --locked` to build without installing. +`./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 @@ -26,7 +97,7 @@ sudo apt install build-essential pkg-config cmake clang libclang-dev \ - 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. - Mouse-wheel scrollback and `Shift+PageUp` / `Shift+PageDown`. -- Lua 5.4 configuration in `$XDG_CONFIG_HOME/ducky/config.lua` (defaults to `~/.config/ducky/config.lua`), created on first launch. Lua modules can live alongside it. +- 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. - `ducky --check-config` validates Lua; `ducky --config-dir` prints its location. |