I am sitting in a sling right now because I had to get my labrum repaired. I am not as experienced as you, but I'll offer up some advice on what has been helping me get through this period in my life. I can not wait to get back on the mat, but I understand what you're going through. The wrestling season that I decided to "tough out" with a torn labrum utterly broke me, physically and mentally. I had to frequently take time off of the mat, and when I came back on it, I went in too early. As someone who already has depression, this circumstance certainly did not help my mental state.
As far as getting through it, I would say that you need to look at what helped motivate you in the first place. For me, it was reflecting on the very nature of why I compete and train. "Why do you train jiujitsu? Why do we seek to better ourselves? What are we willing to do to reach the goals set before us?" Seeking the answer to these question will help you understand why you started on this perilous journey of self-mastery. For the practical side of things, I recommend seeking out a physical therapist to help you with the pain and to give you a firm diagnosis of what is going on with your shoulder. They are the experts on matters of the body, and will be able to give you a realistic outlook on your future activity levels and what you can do to manage the pain. I wish you a quick recovery.