Skip to content

Instantly share code, notes, and snippets.

@jbedo
Created August 24, 2010 01:00
Show Gist options
  • Save jbedo/546684 to your computer and use it in GitHub Desktop.
Save jbedo/546684 to your computer and use it in GitHub Desktop.
Add battery charge state and level (need smapi) to the wmii status bar
status() {
echo -n $(cat /sys/devices/platform/smapi/BAT0/state) $(cat /sys/devices/platform/smapi/BAT0/remaining_percent) '|' $(uptime | sed 's/.*://; s/,//g') '|' $(date)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment