nythepegasus / panic-nap

A small C script I wrote for my frame.work running Void Linux.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

panic-nap

This is a little C script I threw together for my frame.work laptop running Void Linux. It checks the current battery percentage every second, and if the percentage dips below 5% the script hibernates my laptop to disk, so when I charge it again I didn't lose any progress. This was made specifically for my laptop and its set up, meaning that this script might not work for you, user beware.

Building

Note: This is a Linux only script, this depends upon the sysfs of the Linux kernel to function.

git clone https://github.com/Nythepegasus/panic-nap
cd panic-nap
make

That easy :)

About

A small C script I wrote for my frame.work running Void Linux.

License:GNU General Public License v3.0


Languages

Language:C 91.8%Language:Makefile 8.2%