desktopConfig/usr/local/bin/battery-status

10 lines
154 B
Text
Raw Permalink Normal View History

2014-01-06 19:54:17 +00:00
#!/bin/bash
if grep -i discharging /sys/class/power_supply/BAT0/status > /dev/null; then
status="↓"
else
status="↑"
fi
echo $status