Yep that was a lucid dream. Trying to wake yourself up means that you knew that you weren't awake in the first place, which is the definition of lucidity.