Created
March 14, 2022 13:41
-
-
Save dnmfarrell/4a97c9f82d8333c4425799b9f8b8f41f to your computer and use it in GitHub Desktop.
Is your laptop battery charging?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
grep '^Charging$' /sys/class/power_supply/BAT0/status >/dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment