minimal system info tool for BSD
| beastie | ||
| beastie.c | ||
| config.h | ||
| config.mk | ||
| Makefile | ||
| README | ||
beastie - minimal system fetch
================================
Minimal system info tool for BSD. Displays info side-by-side with
ASCII art. Named after the BSD daemon mascot.
Reads hardware/OS info via sysctlbyname(3).
WM detection uses xdpyinfo(1) at runtime if MOD_WM is enabled.
EXAMPLE OUTPUT
--------------
%@ realdaemon@daemon-box
%# @##
%#@ @%%%%%%@%%##@ os FreeBSD 15.0-RELEASE-p4
@%%##@%%%%%@######%## kernel MinKern
%%%###%%%%# @@ @# cpu Intel(R) Core(TM) i7-4910MQ CPU @ 2.90GHz
%%%%%%%%## @ @#@ uptime 3h 45m
@%%%%%## @@#@@# mem 2689M / 16237M
%%%%#### @@##### shell sh
%%%%%%#####%##@## *: term st
@%%%#@######%#@ : :@ wm dwm (on XLibre)
%%%%%%###@ @# @:@ @:
%%###### %#@
@%%@##@###@%%##@
%%%##%####@%@@
@%%%%%%%%%@
@%@::%@@%##@
@%:@%%%####@
@%%%@@%@:@%:#
@%%%%%@ @+ :-:@@:::@@@
%##@@ %::::::# . @
%%@ %@ @ @
@@%####
CONFIGURATION
-------------
Edit config.h and recompile. Configurable:
COLOR_ART ANSI color for the ASCII art
COLOR_USER ANSI color for the user@host header
COLOR_LABEL ANSI color for info labels
ART_W Visual width of the widest art line (must be accurate)
ART[] The ASCII art, one line per string
BUILD AND INSTALL
-----------------
make
doas make install
Installs to /usr/local/bin/beastie. Override PREFIX to change.
REQUIREMENTS
------------
BSD: base system, optionally xdpyinfo(1) for wm vendor detection