TUI app to prevent system from sleeping
Sometimes I need to keep my computer awake. I noticed it's either waiting for some time to pass or for a process to end.
Caffeinate is a Mac utility that solves this issue; however, I need ascii art and a nice moving pic (I'm gen-z btw).
A machine running MacOS (x-86) is required which includes Caffeinate by default.
Clone and build
git clone https://github.com/fontainecoutino/dont-sleep.git
cd dont-sleep
go build -o dont-sleep main.go
If you'd like to add to the global binaries. Needs sudo
priviliges.
sudo cp ./dont-sleep /usr/local/bin/
- I hope to include other systems as well; however, I work exclusively on a Mac.
- "if it's dumb and it works, it's not dumb" - someone