To be happier at work, seek variety in your tasks. Doing the same thing repeatedly leads to boredom and disengagement. Experiencing negative emotions can also be helpful for finding happiness in the long run.
Recognize why you feel the way you do and make changes accordingly. Practicing gratitude is also key to sustained happiness. Use a journal or an app to remind yourself of the positive aspects of your day.