scripts-main/mousescreenlock
2018-06-21 22:49:50 -05:00

15 lines
328 B
Bash

#!/bin/bash
mousescreenlockfile=/tmp/mousescreenlockfile
if [ -f $mousescreenlockfile ];
then
rm $mousescreenlockfile && killall mousescreenlock
else
touch $mousescreenlockfile
sleep 5s
while [ -f $mousescreenlockfile ]
do
# xdotool mousemove 1919 0;
xscreensaver-command activate
done
fi