Fun idea, and it's been built, just with tiny numbers. The tech is called a triboelectric nanogenerator (static from touch, basically).
- 2013: a clear film on a smartphone screen made enough from normal tapping to light 3 LEDs (about 1 µA per cm² current).
- 2015: a palm-tapping harvester with power management gave a steady ~1 mW.
- 2022: a hand-tap device made ~10 µW.
A phone with the screen on draws very roughly a watt, so swipes would cover something like a tenth of a percent or less. Good for powering a sensor, not for charging the phone. The demos that actually charged a Li-ion cell used a spinning generator at 250 to 600 rpm, not fingers.
https://doi.org/10.1039/c3ee42311ehttps://pmc.ncbi.nlm.nih.gov/articles/PMC4682168/https://pmc.ncbi.nlm.nih.gov/articles/PMC9565772/https://onlinelibrary.wiley.com/doi/10.1002/advs.201500255