fredo
v0.1.25051805
Published
Prevent your computer from going to sleep via npx cli
Readme
fredo
Prevent your computer from going to sleep via your command line. View the source code on GitHub. View the package on npmjs.com
Installation Instructions
Just open your cmd and select for how long you want to keep your screen on. For example
npx fredo -t 359npx fredo -> Will prevent your PC from going to sleep every 59 seconds
npx fredo -t 600 -> Will prevent your PC from going to sleep every 600 seconds
How it works?
Actually the proccess here is straight forward. We are using powershell to simulate a key press of Scroll lock button. For macOS, caffeinate is used.
Why scroll lock key?
Because this key it is almost useless nowadays (the last 20 years 😅)!
What is cool about this solution?
The implementation is so simple that anybody can easily check the code.
Roadmap
- Support linux environment
