I like to do as above but I set the gain on my mic to about 25% or under (I've not found a reason to go higher but that's just my personal preference and it's worked for me so far), and in Windows I have my gain to about 40%, but 50% is really the maximum, I have it at 40% because it's where I grab less of a background hum at room silence. In Audacity I monitored the dB at room silence (by that I mean no talking at all and doing nothing, no moving etc..., just "room silence" like room temperature lol) and the bar kept moving at 50% most likely picking up the fans on my PC, so I slowly lowered it until the bar pretty much stopped moving within reason, note that changing the microphone gain in Audacity will also change the windows settings.
In terms of positioning though (keeping in mind I use a boom stand) my general rule of thumb is to take the back of my thumb, place it above my mouth or just on my chin, then stretch my fingers out straight, keeping my hand flat and using that as the distance I want between my mouth and the mic (you can place the mic near your mouth and push it away with your fingers to help), I usually add an inch or 2 more as well, I also like to have the mic about right angle to my mouth as well sort of between where I'm looking and my shoulder is if that makes sense. Because my mic is parallel to the ground, I twist it to aim the cardiod intake towards my mouth, best way to tell is to use the red LED on the mic after you've used the hand trick, when you look at the LED from where you're normally positioned it should look nice and bright in your eye. This will be a lot of trial and error for you though, I have a specific spot that I place my stand and everything, took me ages to get it where I liked.
Having a boom stand also allowed me to keep the mic off my desk and reduce vibrations as well as allowing me to keep the stand behind me.
Like this xD:
View attachment 31672