Files
cnmcdee 05b33a9c33 Pilot batch: banner, bigfind, emptybig LightGUI apps + repo index and MIT license
First 3 of the 5 pilot apps, all built and screenshot-tested on hot_dallas:
- banner (Python): text + font combo + scrolling output, 12/12 GUI-vs-CLI
- bigfind (C++): top-N largest files table, exact CLI match
- emptybig (C++): sparse-file finder, exact CLI match on fixture
Top-level README indexes all 50 drawn apps; LICENSE is MIT (util_box
itself is unlicensed; MIT matches lzply and lightgui).
datecalc and certcheck are blocked pending execution-risk approval.
2026-12-05 04:38:49 +00:00

127 lines
8.1 KiB
Markdown

# util_boxgui — GUI examples of utilities
LightGUI recreations of 50 [util_box](https://github.com/cnmcdee/util_box)
command-line utilities. Each app is reimplemented as a GUI with
[LightGUI](https://github.com/cnmcdee/lightgui) widgets in its original
language, with a screenshot of the running GUI and a detailed walkthrough
guide on the matching LightGUI doc subdomain (C → [cdoc.lightgui.com](https://cdoc.lightgui.com),
Python → [pythondoc.lightgui.com](https://pythondoc.lightgui.com),
Rust → [rustdoc.lightgui.com](https://rustdoc.lightgui.com)).
## Layout
```
apps/
c/<name>/ — C++ (LightGUI X11 widgets): <name>.cpp + Makefile
python/<name>/ — Python (PyGObject/Cairo): <name>.py
rust/<name>/ — Rust (xframe crates), if any
```
Each app directory holds its source, `screenshot.png` (a real capture of the
running GUI under Xvfb), and a `README.md` (what it does, how to build/run,
how it maps to the CLI, link to its walkthrough).
## Status
Pilot batch of 5: **3 done** (banner, bigfind, emptybig). datecalc and
certcheck are **blocked** — their builders hit an execution-risk check on the
server content and are waiting on a plain-words go-ahead to build/test code
on hot_dallas. The remaining 45 are todo.
Walkthrough articles are written and published from hot_newyork (where the
Ghost API keys live) after the code lands here — the walkthrough links below
go live in that phase. Split: hot_dallas does all coding (source, build, run,
screenshot); hot_newyork does article writing only. This repo is the handoff.
## The 50
| App | Lang | What it does | Screenshot | Walkthrough | Status |
|---|---|---|---|---|---|
| bigfind | C | Top-N largest files with age, type and parent-dir context | [screenshot](apps/c/bigfind/screenshot.png) | [walkthrough](https://cdoc.lightgui.com/bigfind/) | ✅ Done |
| cpuidle | C | Per-core idle and C-state time monitor | — | — | ⬜ Todo |
| cpusteal | C | Steal time monitor for VMs with history graph | — | — | ⬜ Todo |
| diskrate | C | Per-disk read/write rate bars, live | — | — | ⬜ Todo |
| emptybig | C | Find large files that are mostly zeros (sparse files) | [screenshot](apps/c/emptybig/screenshot.png) | [walkthrough](https://cdoc.lightgui.com/emptybig/) | ✅ Done |
| fatfree | C | Find files larger than X in a tree and suggest moving them | — | — | ⬜ Todo |
| inodehunt | C | Directories consuming the most inodes (many small files) | — | — | ⬜ Todo |
| iolat | C | Per-disk IO latency histogram from /proc/diskstats deltas | — | — | ⬜ Todo |
| loadhist | C | Record load average over time into a log and show a sparkline history | — | — | ⬜ Todo |
| pressure | C | PSI (pressure stall information) reader with a human summary | — | — | ⬜ Todo |
| procstate | C | Process counts by state (R/S/D/Z/T) graphed over time | — | — | ⬜ Todo |
| proctree | C | Process tree with CPU and memory per branch, collapsed by user | — | — | ⬜ Todo |
| runq | C | Run queue length history graph | — | — | ⬜ Todo |
| splitjoin | C | Split a file into N MB chunks and rejoin from a manifest with checksums | — | — | ⬜ Todo |
| suspendwatch | C | Suspend/resume event log monitor | — | — | ⬜ Todo |
| sysdash | C | Combined mini-dashboard: CPU, memory, disk, net, temp | — | — | ⬜ Todo |
| tempdiff | C | Temperature before vs after running a command | — | — | ⬜ Todo |
| watchdog | C | Watch a process and report (and optionally restart) when it dies or exceeds limits | — | — | ⬜ Todo |
| wifigraph | C | WiFi signal strength graph over time | — | — | ⬜ Todo |
| zombiefind | C | Find zombie processes and report their parents | — | — | ⬜ Todo |
| badlines | Python | Find overlong lines, trailing whitespace, and tabs — a lint for text files | — | — | ⬜ Todo |
| banner | Python | ASCII banner text with several built-in fonts (no figlet dependency) | [screenshot](apps/python/banner/screenshot.png) | [walkthrough](https://pythondoc.lightgui.com/banner/) | ✅ Done |
| benchcmd | Python | Benchmark a command's runtime over N runs (average, min, max) | — | — | ⬜ Todo |
| bomfix | Python | Detect, strip, or add a BOM in text files | — | — | ⬜ Todo |
| certcheck | Python | A site's TLS certificate expiry date and issuer | — | — | ⏳ Blocked (execution approval) |
| charset | Python | Detect a file's encoding (UTF-8/16/32, latin-1) with a confidence note | — | — | ⬜ Todo |
| connlog | Python | Log new connections over time (poll /proc/net/tcp) and report new/closed | — | — | ⬜ Todo |
| croncheck | Python | Validate a cron expression and show the next run times | — | — | ⬜ Todo |
| cronlist | Python | List cron jobs with a human-readable explanation of each schedule | — | — | ⬜ Todo |
| datecalc | Python | Date arithmetic: add/subtract days, difference between dates, weekday | — | — | ⏳ Blocked (execution approval) |
| diskalarm | Python | Alert when a mount crosses a usage threshold, with a one-line report | — | — | ⬜ Todo |
| disktemp | Python | Disk temperature from SMART if smartctl is present, else /sys, else a clear message | — | — | ⬜ Todo |
| dustack | Python | Show which subdirectories grew most since the last snapshot (growth tracker, not just du) | — | — | ⬜ Todo |
| exifsort | Python | Sort photos into YYYY/MM folders by EXIF/date, dry-run first | — | — | ⬜ Todo |
| flatpack | Python | Flatten a nested tree into one directory, resolving name clashes with suffixes | — | — | ⬜ Todo |
| gitdiffstat | Python | Diff stats between two refs with a per-file table | — | — | ⬜ Todo |
| hangman | Python | Hangman game in the terminal | — | — | ⬜ Todo |
| latency | Python | Measure latency to several hosts and rank them | — | — | ⬜ Todo |
| lostfound | Python | Digital-hoarding report: files untouched 2+ years and over 100 MB | — | — | ⬜ Todo |
| portfree | Python | Find the first free port in a range | — | — | ⬜ Todo |
| quiz | Python | Tiny quiz game with built-in questions and a score | — | — | ⬜ Todo |
| repocheck | Python | Health check for a git repo: uncommitted, untracked, ahead/behind, large files | — | — | ⬜ Todo |
| scriptcheck | Python | Syntax-check all shell scripts in a directory (bash -n) and report | — | — | ⬜ Todo |
| snapdiff | Python | Compare two disk-usage snapshots and show what grew | — | — | ⬜ Todo |
| sortbyage | Python | Move files into folders by age buckets (today / this week / this month / older) | — | — | ⬜ Todo |
| stopwatch | Python | Terminal stopwatch with laps | — | — | ⬜ Todo |
| tailfollow | Python | Follow a file and show only lines matching a pattern, with running counts | — | — | ⬜ Todo |
| typing | Python | Typing speed test in the terminal | — | — | ⬜ Todo |
| wifisignal | Python | Wi-Fi signal strength from /proc/net/wireless or iw, with fallback | — | — | ⬜ Todo |
| workdays | Python | Count working days between two dates (weekends excluded) | — | — | ⬜ Todo |
The 50 were drawn with a seeded random sample (seed 20261204, stratified
20 C + 30 Python) from util_box's 310 utilities, excluding the 25 `tx*`
Termux bash wrappers (no LightGUI binding).
## Building and running
**C++ apps** (needs the LightGUI checkout for widget headers):
```sh
cd apps/c/bigfind
make # g++ -std=c++17 -I<lightgui>/widgets/components -I<lightgui>/widgets <name>.cpp -lX11 -o <name>
DISPLAY=:98 ./bigfind
```
**Python apps** (needs the LightGUI Python checkout on `PYTHONPATH`):
```sh
cd apps/python/banner
PYTHONPATH=<lightgui_python> python3 banner.py
```
Run under Xvfb for headless screenshots (see each app's README for its
display number and window title).
## Links
- Original CLI utilities: https://github.com/cnmcdee/util_box
- LightGUI (C++): https://github.com/cnmcdee/lightgui
- LightGUI (Rust): https://github.com/cnmcdee/lightgui_rust
- LightGUI (Python): https://github.com/cnmcdee/lightgui_python
- Docs: https://cdoc.lightgui.com · https://rustdoc.lightgui.com · https://pythondoc.lightgui.com
## License
MIT — see [LICENSE](LICENSE). (util_box itself carries no license file;
MIT matches the author's other public repos, lzply and lightgui.)