[Unit] Description = Suspend machine when battery capacity drops below threshhold [Service] ExecStart = suspend-below-battery-capacity 50 Restart = on-failure [Install] WantedBy = default.target