Ubuntu Pastebin

Paste from e at Fri, 24 Jun 2016 19:57:08 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
if [ -f /tmp/xsetss ]; then
screensaver=$(cat /tmp/xsetss)        
fi

if [ "$screensaver" == "on" ]; then
xset s 3600
echo "off" > /tmp/xsetss
else
xset s 300
echo "xset on" > /tmp/xsetss
fi
Download as text