1.
Try and plan your week out so that you know when you have to do work and when you can do fun things! When I don't have a plan, I feel like I end up feeling stressed and demotivated as I feel like I should be doing work, where's if I know when I need to do it, I can fully relax when I am not doing it and I am more motivated when I know I have work to do.
1.
See if your friends would come to the library with you. This can sometimes be more motivating and if you know other people are doing it too it can be more fun.
1.
Talk to your tutors about how you are feeling and if they can support you with this at all. Sometimes they can be quite helpful with things like this so it is worth asking them if you feel you need the help as they may be quite good with this.
1.
If you are struggling to work at home, try and stay at uni for an hour after your class and get a little bit of work done in the library.