Revert "Drop bg and use urgencyhooks."

This reverts commit d030a134ffb5b17b57514ecb44784abba1d5c5f3.