Tunal/README.md
2026-11-19 05:18:34 -06:00

74 lines
2.9 KiB
Markdown

# Tunal
Tunal is a desktop file manager for Linux (Wayland and X11), written in Rust with [Slint](https://slint.dev) and Material You styling. It follows the system accent colour and light/dark mode, and animates navigation, lists, menus and dialogs.
Features: tabs, split view, places, file operations with trash, `.directory` folder metadata, sudo elevation, thumbnails, a music tag editor, a quick audio player, iOS/Android device browsing and SFTP locations. See [FEATURES.md](FEATURES.md) for every feature and its status and [PLAN.md](PLAN.md) for the roadmap.
## Build and run
```
cargo run -p tunal
```
Needs a recent stable Rust toolchain.
## Install
```
bash scripts/install.sh
```
Builds in release mode and installs the `tunal` binary, desktop entry and icons under `~/.local` (set `PREFIX=/some/dir` to change that). Folders then open with Tunal from application launchers.
Root operations go through `pkexec`, which only accepts an installed binary. Put `tunal` at `/usr/bin/tunal` and install the polkit policy once (the script prints the line):
```
sudo install -Dm644 assets/polkit/org.tunal.Tunal.elevated-helper.policy /usr/share/polkit-1/actions/org.tunal.Tunal.elevated-helper.policy
```
## Shortcuts
| Keys | Action |
|---|---|
| Ctrl+T / Ctrl+W | New tab / close tab |
| Ctrl+L | Edit the path |
| Ctrl+D | Bookmark the current folder |
| Ctrl+H | Show or hide hidden files |
| Ctrl+A | Select all |
| Ctrl+C / Ctrl+X / Ctrl+V | Copy / cut / paste files |
| Ctrl+Shift+C | Copy the path |
| Ctrl+Shift+N | New folder |
| F2 | Rename |
| Delete / Shift+Delete | Move to trash / delete for good |
| Space | Play the selected audio file |
| Ctrl+, | Settings |
| Typing in a folder | Filter the list; Esc clears it |
| Drag with Shift / Ctrl / Ctrl+Shift | Move / copy / link at once, without the drop menu |
## Crates
| Crate | Role |
|---|---|
| `tunal` | The application: Slint UI and glue |
| `tunal-core` | Filesystem model, file operations, location layer |
| `tunal-theme` | XDG Settings portal and Material colour schemes |
| `tunal-dirmeta` | `.directory` reading and writing |
| `tunal-elevate` | Root operations behind a polkit prompt |
| `tunal-thumbs` | Thumbnails |
| `tunal-tags` | Music tags, MusicBrainz and Cover Art Archive |
| `tunal-player` | Audio playback and waveform data |
| `tunal-devices` | iOS and Android devices |
| `tunal-net` | SFTP, ssh config hosts, known_hosts |
## Runtime requirements
Everything compiles into the `tunal` binary. Optional tools only switch their feature off when missing:
- `ffmpeg` / `ffprobe`: video frame thumbnails
- `usbmuxd`: iOS devices
- a polkit agent with `pkexec`: root operations
- `xdg-desktop-portal`: accent colour and dark mode (a fixed fallback colour is used without it)
## Licenses
Tunal is licensed under GPL-3.0-or-later. The bundled icon font Material Symbols Rounded (`assets/fonts/`) is licensed under Apache-2.0; its license file sits next to the font.