Also have xscreensaver-demo installed by default. But this can only be initiated from the GUI. Don't want these.
My need is to have a screensaver and LED of screen "powered off" run iteratively when required without further ado.
Don't want xlock through xautolock, if the unlock a password every time. Unlike this one: How to run custom script as screensaver in Openbox?
Within a script file, sssvr.sh, something like the following:
Code: Select all
#!/bin/bash
echo "Usage: ./ssvr.sh ssvr.sh"
done=0
i=0
while true
do
expr $(( i = i + 1 ))
read -p "To stop press n and Enter : " -t 2 INPOOT
xset dpms force off
kill -19 `pidof $1`
sleep 12
xset dpms force off
kill -18 `pidof $1`
sleep 2
if [ "$INPOOT" = "n" ]; then
echo "Ending..."
echo
exit 0
fi
done
But is it possible to have the above-mentioned script file run through xautolock. Now that is the pertinent question.
Any suggestion for improvement to the simple script is also welcome.
Any support possible?