Ubuntu Pastebin

Paste from jusss at Sat, 11 Apr 2015 13:33:44 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

while true;do
{
    if [ -n $(acpi|grep "Discharing") ]
    then
	if [ -n $(acpi|grep -o ",..%") ]
	then
	    mplayer /home/jusss/low-battery.mp3
	    sleep 1m
	else
	    sleep 5m
	fi
    else
	sleep 5m
    fi
    
}
done

	    
Download as text