Possible solution for setting battery threshold in Qubes

Related, older thread on the same subject: