I have the following script
while [ true ]
do
gnome-screensaver-command -l
xinput set-int-prop 10 "Device Enabled" 8 0
sleep 1m
xinput set-int-prop 10 "Device Enabled" 8 1
sleep 30m
done
I want to run it on startup. I have really bad neck pain so doctor suggested me to go for a walk or do minor exercise every 30 minutes or so. I created this script which will lock me out and disable mouse for one minute. I also want to add keyboard disabling which will totally lock me out of my computer for a minute. It would be really amazing if there is any better option for this.