Back to projects

osdoctor

A read-only Rust CLI that turns scattered Arch Linux and Hyprland health checks into one scriptable report.

Overview

Type
Personal project
Field
Systems tooling
Stack
Rust, Linux, systemd
Flow
System probes → Typed findings → Text or JSON

Notes

The problem

A desktop fault can originate in the kernel, a failed service, a package update or a stale Hyprland binding. Diagnosing each separately means switching tools before the actual investigation begins.

A diagnostic, not a repair tool

The CLI groups checks by system, services, packages and desktop. Each produces an OK, WARN, FAIL or SKIP finding. The tool inspects state without fixing it, so a scan can be used interactively or in a script.

Working across different installations

Optional native backends query systemd and the pacman database directly. When unavailable, command-line fallbacks preserve coverage. Skipped checks distinguish missing dependencies from genuine failures.

Keeping the interface stable

The current Rust implementation follows an earlier C version. Golden tests compare text and JSON reports against examples, while explicit exit codes and strict mode let other tools act on the result.

Built for Omarchy

osdoctor is designed mainly for Omarchy, the Arch Linux and Hyprland setup I use every day, so its checks follow how that system is put together. It also runs on other Arch-based installations, where checks that do not apply are skipped.

Source