Skip to content
RuraamPublic

About

Modular, pure-bash terminal file manager & system console for BubbleOS. Two backends (fzf / loop), trash with undo, disk usage panel, CPU monitor, kernel modules, package management, and BubbleOS generation rollback. No compilation, no Python, no Node.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

125 Commits

Folders and files

Repository files navigation

Omnish — modular file manager and system console

A powerful, modular terminal workspace — built with Bash.
Navigate files. Inspect your system. Manage everyday tasks.
One interface. Two backends. No build step.

CI Latest release GPL-3.0 license Bash 4.4+ GitHub stars

Overview · Features · Changelog · Quick Transfer · Installation · Controls · Configuration · Architecture


✦ Overview

Omnish is a modular, keyboard-driven file manager and system console for Linux. It brings file operations, previews, reversible deletion, disk-usage exploration and system tools together in one terminal interface.

It is written in Bash and designed to stay useful across different Linux environments — from a full desktop installation to lightweight systems, containers and Termux/proot setups.

The two-engine design

Omnish ships with two interchangeable interaction backends. They share the same application modules and core operations, but make different trade-offs:

fzf backend loop backend
Engine fzf Bash input loop
Fuzzy finder Native fuzzy matching Simple in-app filtering
Mouse Supported through fzf Keyboard-focused
External process per keypress fzf handles interaction No per-keypress subprocess
Dependencies Requires fzf No fzf dependency
Best fit Feature-rich interactive terminals Minimal environments, proot and Termux

Choose explicitly, or let Omnish decide automatically:

OMNISH_BACKEND=fzf  omnish
OMNISH_BACKEND=loop omnish
omnish                       # auto: fzf when available, otherwise loop

⚡ Features

▦ File management

  • Navigate with arrows or Vim-style keys
  • Multi-selection and persistent marks
  • Copy, move, rename and create files/directories
  • Create symlinks and toggle executable bits
  • Open files with the system MIME handler
  • Optional live recursive search with ripgrep
  • Quick Archive: compress selections and browse archives as read-only folders, including bounded nested-archive navigation
  • Quick Transfer: send marked files over temporary local HTTP, with optional croc and Magic Wormhole integrations

◫ Live previews

  • Text and source files
  • Images through Chafa: passive Kitty, iTerm2 and Sixel detection; safe truecolor half-block fallback
  • PDF text through poppler-utils
  • Markdown through glow or compatible tools
  • Archives, JSON, symlinks and special files
  • Optional preview pane and hidden-file toggle

⌫ Reversible trash

  • Move deleted items into the Omnish trash
  • Restore the most recent deletion batch
  • Browse stored trash entries
  • Explicitly empty the trash when desired

◴ Disk usage explorer

  • Flat first-level size view
  • Recursive tree view with percentage bars
  • Adjustable depth and minimum percentage
  • Exclusion patterns and rescan support

⌘ System console

  • CPU, memory, storage, network and kernel information
  • Service management for systemd and OpenRC
  • Package operations through supported package managers
  • Kernel module inspection and management
  • BubbleOS generation listing and rollback integration

▤ CPU monitor

  • Live load, temperature and frequency information
  • Per-core frequency view where exposed by the system
  • Optional CPU stress test
  • Reads Linux procfs/sysfs interfaces

Optional tools enhance the experience. The core application does not require fzf, image viewers, PDF tools or dialog utilities to start in loop mode.


🚀 Installation

Omnish is intentionally user-space only.

  • No sudo required.
  • No writes to /usr, /opt or other system directories.
  • The destination is fixed at $HOME/.local; PREFIX is ignored.
  • Works in regular Linux sessions and in Termux/proot. In proot, the files stay inside the container user's home.

1. Get the source

git clone https://github.com/Ruraam/Omnish.git
cd Omnish

2. Install for your user

./install.sh

Debian / Ubuntu / Termux

Via Debup

Install and update Uraam via APT or Github Releases.

install Debup via interactive menu:

curl -fsSL https://raw.githubusercontent.com/Ruraam/debup/main/installer.sh | bash

Search Uraam (on APT repo and Github Release)

dbp -s Ruraam/Omnish

Select option 1 for install directly from Github Releases page.

Default locations:

Component Location
Launcher ~/.local/bin/omnish
Application files ~/.local/share/omnish/
Configuration ~/.config/omnish/
User data ~/.local/share/omnish/
Cache ~/.cache/omnish/

If ~/.local/bin is not already in your PATH, add this to your shell profile:

export PATH="$HOME/.local/bin:$PATH"

Then reload your shell or run source ~/.bashrc.

Uninstall

Interactive:

./uninstall.sh

Non-interactive or preview-only:

./uninstall.sh --dry-run
./uninstall.sh --yes

The uninstaller removes the application and its launcher. It deliberately keeps your configuration, cache and user data so that uninstalling Omnish does not silently erase your personal files.

Debian package and desktop integration

Each published v* GitHub Release receives an omnish_VERSION_all.deb asset. The Debian package provides a small system-wide bootstrap only; it does not install the running application into a system directory or guess which user's HOME should be modified.

Install the downloaded package with your Debian package manager, then run the installer as your regular desktop user (without sudo):

sudo apt install ./omnish_VERSION_all.deb
omnish-install

This installs the application in ~/.local/share/omnish, its launcher in ~/.local/bin/omnish, and a per-user application-menu entry with the Omnish SVG icon. The menu entry launches Omnish in a terminal.

To remove the user-local application, launcher, menu entry and icon, run:

omnish-uninstall

You can then remove the bootstrap package with sudo apt remove omnish. Your configuration and personal data are retained by the uninstaller.


🧰 Requirements

Component Requirement
Core Bash 4.4+, coreutils, findutils
Recommended backend fzf (recommended 0.42 or newer)
Minimal backend loop — built into Omnish
Image previews chafa (single image engine; terminal protocol support is detected passively)
Text enhancements bat or highlight
Markdown preview glow or compatible viewer
PDF preview poppler-utils
Recursive search ripgrep (rg)
Quick Transfer Python 3 or BusyBox for temporary local HTTP; optional qrencode for ANSI QR output; optional croc or Magic Wormhole for encrypted/code-based transfers
Archive support tar; unzip for ZIP/APK; dpkg-deb for DEB; unsquashfs for ULPM SquashFS LPK; optional bsdtar (libarchive) for RAR, 7z, ISO, CAB and AR when supported by the installed libarchive build; zip and zstd for optional creation formats
Native dialogs whiptail or dialog
Long listing eza (otherwise standard ls)

Quick Archive's CI includes real 7z, ISO-9660, CAB, ar and RAR3 fixtures. The RAR3 fixture is a tiny CC0 test archive pinned to an upstream commit; actual RAR browsing still depends on the installed libarchive build and its RAR reader support. Security tests cover malformed containers, traversal and absolute member paths, read-only inspection, and complete streaming of an 8 MiB member. A separate signature-detection suite verifies recognition when extensions are missing or misleading. Nested archives can be opened recursively in a read-only view (maximum depth 4 by default); selected nested members are copied to a temporary file only, with a 64 MiB default size ceiling and a 15-second extraction timeout. Configure OMNISH_NESTED_ARCHIVE_MAX_DEPTH, OMNISH_NESTED_ARCHIVE_MAX_BYTES and OMNISH_NESTED_ARCHIVE_TIMEOUT to adjust these limits.

Quick Transfer's local HTTP mode is unauthenticated and intended only for trusted local networks: anyone who can reach the selected interface and port while sharing is active can download the staged files. For transfers over untrusted networks, use the optional encrypted croc or Magic Wormhole backends.

Optional utilities are detected at runtime. Their absence should not prevent the core file manager from running.


🎮 Quick start

omnish                  # open the current directory
omnish /etc             # open a specific directory
omnish --system-menu    # open the system console
omnish --dua            # open disk usage for the current directory
omnish --undo           # restore the latest trash batch
omnish --version        # show version and resolved backend
omnish --help           # show command-line help

Scratchpad

Press F2 in either backend (fzf also supports Ctrl+Space) to open the private Markdown scratchpad. It is stored at $XDG_DATA_HOME/omnish/scratchpad.md (default ~/.local/share/omnish/scratchpad.md) with mode 0600. Add notes and TODOs, paste clipboard contents (wl-paste → xclip → xsel → termux-clipboard-get), insert the currently selected path, or open the file in $VISUAL / $EDITOR. If no clipboard provider is available, paste is a harmless no-op.

Quick Transfer

Quick Transfer sends the files you marked, or the currently selected file when nothing is marked. It is available in both the fzf and loop backends.

1. Select the files

  • In either backend, use Tab / Shift+Tab to mark the current item and move, or Space / Alt+A to toggle its mark.
  • To send only one file, simply highlight it and leave the mark list empty.
  • Quick Transfer accepts regular files only. Directories and symbolic links are not shared.

Press Ctrl+S, then choose the transfer method. If files are marked, that marked set takes priority over the highlighted item.

2. Local HTTP (same-network sharing)

Choose Local HTTP to start a temporary web server on a detected local IPv4 address.

  1. Omnish copies the selected files into a private temporary staging directory. Your original files are not moved or modified.
  2. It starts a temporary HTTP server using Python 3, or BusyBox if Python 3 is unavailable.
  3. Omnish displays a URL such as http://192.168.1.20:45678/. If qrencode is installed, it also displays an ANSI QR code in the terminal.
  4. On the receiving device, open the URL in a web browser connected to the same reachable network, then download the listed files.
  5. Return to the Omnish terminal and press Ctrl+C to stop sharing. The temporary staging directory is removed when the transfer session ends.

The default HTTP port is selected from 40000–49999. Advanced users can override the range with OMNISH_TRANSFER_PORT_MIN and OMNISH_TRANSFER_PORT_MAX in their environment; valid values must remain within 1024–65535.

Security: local HTTP has no authentication or encryption. Anyone who can reach the chosen address and port while the server is running can download the staged files. Use it only on a network you trust, do not expose or forward the port to the internet, and stop the server as soon as the transfer is complete. For untrusted networks, choose an encrypted transfer method instead.

3. Croc (encrypted transfer)

If croc is installed, choose croc (encrypted). Omnish starts croc send for the selected files and displays the one-time transfer code in the terminal.

On the receiving device, install Croc and run:

croc <transfer-code>

Enter the code exactly as displayed by the sender. Keep it private: anyone who obtains the code may be able to join the transfer.

4. Magic Wormhole

If the wormhole command is installed, choose Magic Wormhole. Omnish runs wormhole send with the selected files. Follow the code and prompts shown by Magic Wormhole.

On the receiving device, install Magic Wormhole and run:

wormhole receive

Enter the one-time code displayed by the sender when prompted.

Troubleshooting

  • No transfer method appears: install Python 3 or BusyBox for local HTTP, croc for Croc, or the Magic Wormhole package that provides the wormhole command.
  • The URL does not open on the receiving device: confirm both devices can reach each other on the same network, check the displayed IP address, and verify that the host firewall allows the selected TCP port.
  • Local HTTP cannot start: make sure Python 3 or BusyBox is installed and that the selected port is not blocked or already in use.
  • No QR code is shown: this is normal when qrencode is not installed; the URL is still printed.
  • A file is rejected: Quick Transfer deliberately shares regular files only. Select the actual file rather than a directory or symbolic link.

Keyboard controls

Key Action
↑ / ↓, j / k Move selection
Enter / → / l Open file or enter directory
← / h / Backspace Go to parent directory
g / G Jump to top / bottom
Tab / Shift+Tab Mark item and move down / up
Space Toggle mark (both backends)
Alt+A Toggle mark
Alt+X Mark all in current directory
Ctrl+A Toggle all marks
c Clear marks
Ctrl+Y / Ctrl+V Copy / move marked items
Ctrl+D / Ctrl+E Move selected items to trash
Ctrl+N / Alt+N Create directory / file
Ctrl+S Quick Transfer: local HTTP or optional croc / Magic Wormhole
Alt+S / r Create symlink / rename
Ctrl+O Open with MIME handler
Ctrl+U Open disk usage explorer
Ctrl+X Open system console
p / x / X Paste marks / inspect / toggle executable
Z Quick Archive: compress marked files (.tar.gz, .tar.zst, .zip) with a size estimate
Enter on archive Browse .tar.*, .zip, .deb, .apk, ULPM v5 SquashFS .lpk, and (with bsdtar) RAR, 7z, ISO, CAB and AR without extracting
Ctrl+P Toggle preview pane
Alt+H Toggle hidden files
Alt+L Toggle long listing
Ctrl+G Search recursively (ripgrep)
F1 / ? Help (fzf backend)
Ctrl+H Toggle inline help (loop backend); show help pane (fzf backend)
F2 Open private Markdown scratchpad (both backends)
Ctrl+Space Open scratchpad (fzf backend)
Esc Quit (both backends)
q Quit (loop backend)
Ctrl+Q Quit (fzf backend)
Ctrl+C Interrupt / quit (both backends)

Disk usage panel

Key Action
Enter / → Descend
Ctrl+H / ← Go up one level
Ctrl+O Open directory or file
Ctrl+D / Ctrl+E Trash selected entry
Ctrl+R Rescan
Ctrl+T Switch flat / tree view
Alt+D / Alt+Shift+D Increase / decrease tree depth
Esc Return to Omnish

System console

Open it with Ctrl+X or launch directly using omnish --system-menu. Available entries depend on the host system and installed tools; management actions use the host's own service and package-manager commands.


⚙️ Configuration

Configuration file:

$XDG_CONFIG_HOME/omnish/omnish.conf

If XDG_CONFIG_HOME is not set, Omnish uses ~/.config/omnish/omnish.conf.

The file is Bash syntax and is sourced by Omnish. Only put trusted shell code in it.

Chafa remains the only image renderer. The built-in image defaults are OMNISH_IMAGE_QUALITY=high and OMNISH_IMAGE_FORMAT=auto; no manual configuration is required. The default backend is auto: Omnish uses fzf when installed and falls back to loop otherwise. In fzf mode, auto selects Kitty, iTerm2 or Sixel only from known environment hints (KITTY_PID, TERM, TERM_PROGRAM, COLORTERM); otherwise it uses symbols. No terminal capability query is sent. The loop backend always forces --format=symbols --colors=full (Chafa truecolor mode) and uses the glyph set selected by OMNISH_IMAGE_QUALITY; it falls back to vhalf if the installed Chafa cannot render the selected set. Its preview pane clips text line by line and must not receive graphical control streams. Set OMNISH_IMAGE_FORMAT to override auto-detection (auto, kitty, sixel, iterm, symbols).

Example:

# Behaviour
OMNI_CD_ON_EXIT=1
OMNI_USE_TRASH=1
OMNI_OPENER="xdg-open"

# Trash location
OMNI_TRASH="$HOME/.local/share/omnish/trash"

# Preview width follows the terminal layout automatically; set this only to override it.
# OMNISH_PREVIEW_WIDTH=60%

# Image previews (Chafa only; these are already the built-in defaults)
OMNISH_IMAGE_FORMAT=auto   # auto | kitty | sixel | iterm | symbols
OMNISH_IMAGE_QUALITY=high  # high | balanced | fast

# Disk usage panel
DUA_MODE=flat              # flat | tree
DUA_TREE_DEPTH=3
DUA_TREE_LINES=30
DUA_MIN_PCT=1
DUA_EXCLUDES=".git node_modules .cache .venv target"
DUA_BAR_WIDTH=12

# CPU monitor
CPU_TEMP_THRESHOLD=80
CPU_HOOK_SCRIPT=""
CPU_MONITOR_REFRESH=1
CPU_WIDGET_CACHE_TTL=2

# Favorites
OMNI_FAV_1="$HOME/Documents"
OMNI_FAV_2="$HOME/Downloads"
OMNI_FAV_3="$HOME/Pictures"

All settings are optional. Run omnish --show-help for the in-app reference.

Shell directory integration

If you want your parent interactive shell to change directory to the last location visited in Omnish, add a shell function to your Bash configuration:

omnish() {
    command omnish "$@"
    local rc=$?
    local state="${XDG_CACHE_HOME:-$HOME/.cache}/omnish/.omnish_d"

    if [[ -f "$state" ]]; then
        IFS= read -r target < "$state"
        if [[ -n "$target" && -d "$target" ]]; then
            cd -- "$target"
        fi
        rm -f -- "$state"
    fi

    return "$rc"
}

This works with OMNI_CD_ON_EXIT=1.


🧩 Architecture

Omnish is split into small, ordered Bash modules. The entrypoint loads shared modules first, then activates exactly one interaction backend.

omnish/
├── omnish                    # entrypoint and backend dispatcher
├── lib/
│   ├── 00-config.sh          # paths, environment and configuration
│   ├── 10-utils.sh           # common helpers and mark persistence
│   ├── 15-dialog.sh          # optional dialog integration
│   ├── 20-ui.sh              # prompts and UI fallbacks
│   ├── 25-progress.sh        # progress bars and spinners
│   ├── 30-preview.sh         # file preview engine
│   ├── 40-dua.sh             # disk usage explorer
│   ├── 45-system.sh          # system console
│   ├── 46-cpu-monitor.sh     # CPU monitor and stress test
│   ├── 50-fileops.sh         # file operations
│   ├── 55-archive.sh         # Quick Archive compression + virtual browsing
│   ├── 56-transfer.sh        # Quick Transfer (local HTTP, Croc and Wormhole)
│   ├── 60-trash.sh           # reversible deletion
│   ├── 70-fzf.sh             # fzf interaction backend
│   ├── 70-loop.sh            # pure-Bash interaction backend
│   ├── 80-help.sh            # help and key reference
│   └── 99-main.sh            # final dispatcher
├── assets/
│   └── omnish-banner.svg     # project banner
├── share/
│   └── omnish.conf.example   # example configuration
├── install.sh                # transactional user-local installer
├── uninstall.sh              # user-local uninstaller
└── tests/                    # regression, installer and PTY tests

Design principles

  • One responsibility per module. Keep features isolated and composable.
  • Shared core, interchangeable UI. Both backends use the same file operations, previews, trash and system modules.
  • Graceful optional dependencies. Missing optional tools should degrade functionality, not break startup.
  • User-owned installation. No privileged installation path and no system-wide writes.
  • Defensive shell scripting. Quote paths, pass arguments directly, validate inputs and clean up terminal state on exit.

🧪 Development and testing

Clone the repository and run checks locally:

# Bash syntax
bash -n omnish
for file in lib/*.sh install.sh uninstall.sh tests/*.sh; do
    bash -n "$file" || exit 1
done

# Static analysis (install ShellCheck separately)
shellcheck --shell=bash --severity=error \
    install.sh uninstall.sh omnish lib/*.sh tests/*.sh

# Regression tests
bash tests/regression.sh

# Quick Archive real-format and security integration tests (requires CI fixture tools)
bash tests/archive_real_formats.sh
bash tests/archive_security.sh

# Quick Transfer integration tests (Python 3; BusyBox fallback is covered when available)
bash tests/transfer.sh

# Installer integration tests
bash tests/install.sh

# PTY integration tests (requires Python 3)
python3 tests/pty_integration.py

GitHub Actions runs the syntax, ShellCheck, regression, installer, PTY, Quick Archive and Quick Transfer integration checks on pushes and pull requests.


📦 BubbleOS packaging

Omnish is designed to integrate with BubbleOS and its user-space application model.

Example package metadata:

app_id: omnish
version: 3.0.0
depends:
  - bash
  - findutils
  - coreutils
  - file
optional:
  - fzf
  - bat
  - chafa
  - eza
  - glow
  - poppler-utils
  - ripgrep
  - whiptail
  - dialog
entrypoint: ~/.local/bin/omnish
permissions:
  filesystem: home
description: Modular file manager and system console

Optional integrations are detected at runtime. The application remains user-scoped; package integration must not turn Omnish into a privileged system installation.


📜 Exit codes

Code Meaning
0 Successful execution or normal quit
1 Fatal error
2 Invalid command-line argument
130 Interrupted (SIGINT)
143 Terminated (SIGTERM)

🖤 Credits

Omnish is an independent project. Some ideas and interaction patterns are inspired by:

  • fff — terminal file-manager workflow
  • fzf — fuzzy finding
  • dust — disk-usage visualization
  • kmon — kernel module management UX
  • s-tui — CPU monitoring concepts

These projects are inspirations, not bundled dependencies unless explicitly stated.


📄 License

Omnish is distributed under the GNU General Public License v3.0. See LICENSE.

Omnish · A sharper terminal workspace.
Built for Linux. Made to stay lightweight. At home in BubbleOS.

Related projects

  • URAAM — Android ADB application management and debloating toolkit.
  • Debup — Hybrid APT and GitHub Releases package manager for Debian-based systems.
  • ULPM — Rootless, sandboxed Linux application runtime and LPK package format.
  • BubbleOS — Experimental immutable, atomic Linux operating system.
  • BubbleWM — Native, lightweight Wayland compositor written in Rust.
  • BubbleTerm — Native Wayland terminal emulator written in Rust.

Project showcase: Ruraam Technologies — discover the other projects in the ecosystem.

About

Modular, pure-bash terminal file manager & system console for BubbleOS. Two backends (fzf / loop), trash with undo, disk usage panel, CPU monitor, kernel modules, package management, and BubbleOS generation rollback. No compilation, no Python, no Node.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages