2015 , Kubuntu 14.10, Desktop Widgets:
#!/bin/bash
lockpidname="/usr/bin/plasma-overlay --nofork"
$lockpidname
check_slock () {
if [[ $(pgrep -fla $lockpidname) ]]; then
SLOCKED=1
else
SLOCKED=0
fi
}
while true; do
sleep 5
check_slock
case $SLOCKED in
0)
echo "System unlocked run something here"
break
;;
esac
done
, CTRL + ATL + L "" " ".