Skip to content

Execute script when on battery and remaining battery is below X percent? #137

@JulianAtkins

Description

@JulianAtkins

I'm trying to understand if Nutify is for me, but the readme is not clear.

Can Nutify execute a shell script when on battery and the remaining battery is below X percent? for example, execute /usr/local/bin/all-poweroff.sh when battery drops below 30%.

I need to shutdown 10 systems and all of them require SSH to shut down. Thus, I've created a small shell script that uses a special SSH key that executes poweroff on all 10 systems.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions