Providing a sensible answer is dependent on arriving at a sensible interpretation of the question. I'll assume that it is aimed at understanding to what degree farming or non-farming lifestyles have had an influence on the selection of genes that you carry. I assume that "farming lifestyle" includes people who don't actually farm, but obtain food from farmers, one way or another.
On that basis, and assuming you are a typical inhabitant of a society that hasn't recently engaged in much hunting/gathering (maybe some fishing, but not dominant), I would say that about 1/30 of your ancestors were of a farming lifestyle. That is, if you trace back what the selective influences were on your ancestors, about 1/30 of it was selection for reproduction in a farming community. I get the 1/30 by dividing 300,000 years of homo sapiens into 10,000 years of agriculture.
I don't think the population sizes at different times, and collapse of the pedigree (some of your ancestors being the same people), make any difference. It might make a difference if the number of children per person varied, since each child is a new object for selection, but I think this may be rather constant until very recent times. And of course, the number of children who survive to reproduce themselves is close to two at all times. (The population has grown over time, but at nowhere near the rate it would if, say, three children per couple survived to reproduce themselves.)
Now, depending on how quick evolution can act, the fact that the 1/30 of the selection influence is the most recent 1/30 could be crucial.
I would expect the general breakdown to be a few recent generations of maybe not farmers, several thousand years of mostly farmers, and then the remainder of the time between the dawn of humanity and the beginning of agriculture being "farmers didn't exist yet".
Exactly when agriculture began isn't an entirely settled question, but there doesn't seem to be any suggestion that it was early enough to make up any more than a small fraction of the last 300k years.
Even if you include some proto farming, like a hunter-gatherer occasionally choosing to scatter seeds in a convenient foraging spot, I don't know if you get back to 150kya (or whenever the halfway point would be when accounting for changing generation times, and counting ancestors rather than years)
Or are we thinking that it gets weirder when you account for population size expanding after farming? That would provide more people to be distinct ancestors (past a certain point, everyone who was alive at the time either has no living descendants or is a universal ancestor), but I'm dubious of that out weighing the long (long) period of pre-farming.
OWID claims that there were ~9 billion people, or about 8%, of people before the agricultural revolution. So I don't think you can get to quite as low as ~1%.

If we make the simplifying assumption that everybody in the past are ancestors, then we get 8% non-farmers. This assumption is ofc false, but if it's true across a fairly small number of generations, farmers will outweigh non-farmers as you say.
According to this article, the halfway point for "number of humans who have ever lived" is between 1 CE and 1200 CE.