Created
April 14, 2022 09:29
-
-
Save Vulcalien/2ca66ec4e5f33c42c9a53da9a0263b81 to your computer and use it in GitHub Desktop.
Revisions
-
Vulcalien created this gist
Apr 14, 2022 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ #!/bin/sh charge_now=$(cat /sys/class/power_supply/BAT0/charge_now) charge_full=$(cat /sys/class/power_supply/BAT0/charge_full) echo $((100 * $charge_now / $charge_full))%