Run cryptominer while the screen is locked

 1dbus-monitor --session "type=signal,interface=org.gnome.ScreenSaver" |
 2while read MSG; do
 3LOCK_STAT=`echo $MSG | grep boolean | awk '{print $2}'`
 4if [[ "$LOCK_STAT" == "true" ]]; then
 5echo "was locked"
 6killall ethdcrminer64
 7screen -d -m /home/user/Downloads/Claymore/ethdcrminer64 -epool exp-us.dwarfpool.com:8018 -ewal 0xaddresshere/m3 -epsw x -allpools 1 -gser 2 -allcoins exp
 8else
 9echo "was un-locked"
10killall ethdcrminer64
11fi
12done