Simple portable programs that make using my desktop easier, while teaching me how things work in the backstage
kzimmermann 17cb5318dd updated .gitignore | hai 11 meses | |
---|---|---|
cpu-utils | %!s(int64=2) %!d(string=hai) anos | |
freebsd | hai 11 meses | |
mini-poker | hai 1 ano | |
tempconv | %!s(int64=2) %!d(string=hai) anos | |
.gitignore | hai 11 meses | |
LICENSE | %!s(int64=2) %!d(string=hai) anos | |
README.md | %!s(int64=2) %!d(string=hai) anos | |
cputemp.c | %!s(int64=2) %!d(string=hai) anos | |
layoutswitch.c | %!s(int64=2) %!d(string=hai) anos | |
parsechar.c | %!s(int64=2) %!d(string=hai) anos | |
setbrightness.c | %!s(int64=2) %!d(string=hai) anos | |
stringtest.c | hai 11 meses | |
zzz.c | %!s(int64=2) %!d(string=hai) anos |
Because sometimes reinventing the wheel will teach you lots of great stuff about how the wheel works and how you can improve it!
Simple, mostly self-contained programs written in C that do the raw way the stuff that sometimes a full-blown DE would solve. Why, then, would I ever want to code something like these, or even use it?
Because they solve the same problems but with an order of magnitude less resource consumption. And also teach you what is really going on in the back while you do it.
These are all programs that are designed to be easy and fast to compile, and used in the terminal, making them suitable for pretty much any environment, even the simple console.
Clone this repo and, where Makefiles aren't available yet, a simple:
$ gcc -Wall -o bin/program program.c
Or something similar should suffice for any one of the programs. There will be a binary placed in a bin/
directory of the cloned repository. Place that binary somewhere in your $PATH
and you're good to go.
On the other hand, subdirectories for specific programs contain their own Makefiles
(another study of mine!) and a simple
$ make
Is all you need.
At this time, I'm not including external config files for these programs. Edit the source code at the specific config bits and recompile to change how this works.
Copyright 2022 kzimmermann. All programs in this repo are released under the GNU GPL v3, except where otherwise noted.