Gets the status (charging, discharging, unknown, full), percentage, remaining time and
power consumption (in Watts) of the given battery and when it’s estimated to be empty.
Check if the given path exists in the filesystem. You can use this to check if
something is active, like for example a VPN connection managed by NetworkManager.
Expands the given path to a pidfile and checks if the process ID found inside is of
a running process. You can use this to check if a specific application, such as a VPN
client, is running.