If you want to make yourself happy, you must first develop happy habits and master some methods to make yourself happy, such as listening to music, walking, etc.
Listen to some uplifting music. It may make you unable to work, but when you feel that you are getting more and more irritable, just spend a few minutes and turn on the music you like to listen to, and you will find a big change. You'll feel happier if you start singing along or even dancing spontaneously!
Do good things. Doing good things for others will make you feel better. Whether it's feeding a sick friend, helping your mother with chores, or helping your neighbor water the garden, taking the time to help others will take your mind off the things that bother you and make you happier.
Take a walk. If you suddenly feel groggy or sad, go for a walk. A simple twenty-minute walk will lift your mood, breathe fresh air, and spend some time walking in the sunshine will make you feel more energetic no matter what is ahead of you.