Don't quit your job without finding another one. Finding another job is tough as it is - and your bargaining position, perceived 'employability' etc are greatly diminished when you're applying without a current job.
You have an idea of what makes a great job. Go look for it. Believe that it exists - and when you really believe it exists, you will feel energized about the prospect of landing the job.
So start looking for a job right now - and whenever a prospective opening comes along, dive into it.
A lot of job seekers don't ask enough questions before taking up the job. The interviewee asking many questions is always a good sign for any sane interviewer. Make sure you know and like what you get into next.
After you've put your resume out there, sent emails to companies and are waiting to hear back, do two other things to make the immediate future better.
1 - Do what you can to make life at your job more interesting. Seek out changes and improvements to your job and for your company even if it takes convincing someone else to 'allow' you to do it.
2 - Find habits or interests outside of work. This could be activities can be added directly your resume (for example if your company works on Java, you could learn to work on node.js), or even something unrelated to your career like sky diving or visiting landmarks over the weekend (I am a programmer, and I read up on finance to take a break)
Good luck.