summaryrefslogtreecommitdiffstats
path: root/battery_mon
blob: 5591c5c7a7e6904d306a7302ad037bd768e8aa93 (plain)
1
2
3
4
5
#!/bin/bash
status=`acpi -b`
if grep 'Discharg' <<< $status;then
echo "On Battery: $(cut -d ':' -f 2 <<< $status) |"
fi