I've used KShare for a while. Not sure if it's still under active development, but it's the closest thing I've found to ShareX, and works well enough for me
https://github.com/Gurkengewuerz/KShare