rktfetch is an info fetch tool (like neofetch) but written in Racket.
After you've installed racket, just run racket rktfetch/main.rkt
.
There is also a Makefile, which contains the following targets:
run
(runs the program)exe
(compiles an executable)install
(install the program)dist
(create a package for the program)distclean
(remove the created package)clean
(remove any compiles files and created packages)remove
(removes the installed package)purge
(run theremove
andclean
targets)
This is accurate as of the repo having 13 commits.
$ racket rktfetch/main.rkt
:
valley@gentoo
CPU: Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz
DESKTOP: leftwm
DEVICE: OptiPlex 7010
DISTRO: Gentoo/Linux
EDITOR: Vim
KERNEL: 5.10.10-ck-VALLEY
MEMORY: 15966MB
SHELL: BASH
UPTIME: 2d 8h 8m
- CPU on Windows
- Device on Windows
Distro- DE/WM (split the current WM output into an array delimited by spaces and take the last element)
EditorMemory- Music Info (MPD)
Packages- Terminal
- parse the
/proc/?/status
of the current PID - use it to find the PPID, parse the status of that
- repeat until terminal found while applying exceptions where necessary
- parse the
- Uptime (parse
/proc/uptime
)Linux support- BSD support