I think the core of the motivation issue is the NOW vs longer term achievements, so my suggestion is to push longer term achievements to the "now court". How?
Well, think in byproducts of your current work: are you working on an algorithm that is complex? write an article explaining it after you understand it. Did you find an unknown development library that was very useful to your work, share it! So I see small branches of your current work that produce many deliveries.
Another way to solve the motivation issue is working with someone. This is the core idea on pair-programming.
If someone is interested I have concrete examples about delivering byproducts.
Well, think in byproducts of your current work: are you working on an algorithm that is complex? write an article explaining it after you understand it. Did you find an unknown development library that was very useful to your work, share it! So I see small branches of your current work that produce many deliveries.
Another way to solve the motivation issue is working with someone. This is the core idea on pair-programming.
If someone is interested I have concrete examples about delivering byproducts.