#firefox seems to be the biggest power hog on my #oneplus6 running #postmarketos. Is there any way I can check if the screen is off for a a pre-determined amount of time and then automatically kill firefox or to freeze it in the background by using 'killall -19 firefox-esr'?
With firefox running on my phone, the battery drain is some 10%/hour, while if it is not running the battery drain seems to be in the 4-7%/hour range.
@tomasoqvist You can use something like wayidle or swayidle (assuming your compositor supports ext-idle-notifier).