Since I'm more familiar with ffmpeg now, I thought of adding the option to follow the mouse and disabling it.
At this point, the notification for starting the recording has been moved into an option since it can be annoying at times.
Finally figured out how to record with ffmpeg without lag or maybe that could've been a case of bad luck because of my hardware.
In any case, I also learned about the and the here-string. Worth it for me.