@Lad-Highgun-0 I get it! Staying motivated to write can be a challenge. I don't think any one trick works for every writer, but I have some suggestions.
Firstly, take a break! Go for a walk. Grab a coffee. Put the work aside for a little while and just let yourself rest. Sometimes the lack of motivation is just burnout in disguise.
Second, remind yourself why you write. Reread your work, even. The answer, for a lot of us, is that we enjoy it. Remind yourself that this is supposed to be a enjoyable hobby. If it's not maybe rethink why you're writing or if the piece you're working on is the one you really want to be working on right now.
Lastly, force it. I know, that's not a very romanticized view of writing. But if you want to form a good habit, you have to make yourself do it on the regular. In my deepest slumps I force myself to write for at least ten minutes a day.
Even if what I'm writing is pure garbage. But I can't let myself break the habit and write nothing. And just ten minutes? That's not so bad. I can do ten minutes. Sometimes, that's it. As soon as my minutes are up, I'm done. I can't force myself to type another word. Most days, though, I wind up going 'oh yeah, this IS fun' and those ten minutes turn into many more.
Hope this helps!