https://github.com/mythical-linux/rktfetch
System fetch program in Racket
https://github.com/mythical-linux/rktfetch
neofetch racket
Last synced: 4 months ago
JSON representation
System fetch program in Racket
- Host: GitHub
- URL: https://github.com/mythical-linux/rktfetch
- Owner: mythical-linux
- License: other
- Created: 2021-03-04T22:41:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-11T20:21:18.000Z (about 3 years ago)
- Last Synced: 2025-10-20T14:55:07.339Z (8 months ago)
- Topics: neofetch, racket
- Language: Racket
- Homepage:
- Size: 582 KB
- Stars: 6
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ricing - rktfetch - System fetch program. (racket) (Packages / CLI Tools)
README
# rktfetch
rktfetch is an info fetch tool (like neofetch) but written in Racket.
## Usage
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 the `remove` and `clean` targets)
## Output
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
```
## TODO
- 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)
- ~~Editor~~
- ~~Memory~~
- 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
- Uptime (parse `/proc/uptime`)
+ ~~Linux support~~
+ BSD support