scripts-main/mousescreenlock

15 lines
328 B
Plaintext
Raw Normal View History

2018-06-21 22:49:50 -05:00
#!/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