hangs on arch/kde
Are you sure it hangs and doesn't just show a dialog somewhere for you to select which screen to cast / give it permission to screencast?
It may only work on gnome...
Which already has an integrated screen recorder that works fairly well.
Whats the function of the "Select an Area" button in this screenshot then? https://github.com/xlmnxp/blue-recorder/blob/master/screensh...
Blue-recorder, green-recorder (https://github.com/mhsabbagh/green-recorder), etc. were around to fill in the gap at the time and may still be useful for special cases.