slb

Sleep on Low Battery
Log | Files | Refs | README | LICENSE

config.h (335B)


      1 int delay = 10;
      2 
      3 /* threshold below which system should hibernate */
      4 int threshold = 10;
      5 
      6 const char *bat[] = {
      7 	"/sys/class/power_supply/BAT0/capacity",
      8 	"/sys/class/power_supply/BAT1/capacity"
      9 };
     10 
     11 const char ac[] = {
     12 	"/sys/class/power_supply/AC/online"
     13 };
     14 
     15 const char cmd[] = {
     16 	"/bin/ZZZ"
     17 };
     18 
     19 char *const arg[] = {
     20 	(char *) 0
     21 };
     22