Skip to content

Instantly share code, notes, and snippets.

@jakemayeux
Created February 5, 2018 03:39
Show Gist options
  • Save jakemayeux/2c0e0a0b162a83e5cb6241d25acdb296 to your computer and use it in GitHub Desktop.
Save jakemayeux/2c0e0a0b162a83e5cb6241d25acdb296 to your computer and use it in GitHub Desktop.
let "cur = `cat /sys/class/power_supply/BAT0/current_avg`"
let "xbl = `xbacklight -get | grep -o '^[0-9]*'`"
#echo $xbl" "$(($cur / 1000))" "
echo ""$(($cur / 1000))" "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment