Skip to content

Instantly share code, notes, and snippets.

@SlaSerX
Forked from smlb/batt.sh
Created September 8, 2017 17:37
Show Gist options
  • Save SlaSerX/141ed96e26f52ad92e599783a0c6ee91 to your computer and use it in GitHub Desktop.
Save SlaSerX/141ed96e26f52ad92e599783a0c6ee91 to your computer and use it in GitHub Desktop.
Battery notify
BATT=`acpi -b | awk '{ split($5,a,":"); print substr($3,0,2), $4, "["a[1]":"a[2]"]" }' | tr -d ',' | awk '{print $2}' | sed 's/\%//g'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment