Forget about the obsession with exactly 2 liters, that's just marketing nonsense and it's only gonna make you more anxious. What actually makes sense is that when you're staring at a screen, your body forgets it's thirsty, so you end up dehydrated without even realizing it. In my case, the exact same thing happened when I started gaming more, sitting in a chair for hours, and I'd notice I hadn't drunk anything all day.
The most practical thing is not to depend on your memory but on your environment. Put a big water bottle or a glass right on your desk, literally where you have to see it every time you look up from the screen. That way water becomes automatic, just part of your work routine. If you really want a reference point, most people need somewhere between 1.5 and 2.5 liters depending on how sedentary you are, the climate, whether you exercise or not. But honestly, if you're not excessively thirsty during the day and your urine is clear, you're well hydrated. If you see it's dark, then drink more.
Another thing that works: get a bottle with time markers on it, you can find them anywhere. It forces you to reach a certain level by a certain time without having to constantly ask yourself "have I drunk enough?" And really, you don't need to get up constantly if you have the water within reach from the start.