One key command for show/hide bar numbers?

I have F12 assigned to show/hide bar numbers in Galley View, but I’d like the same command to work for Page View. I’d prefer not to use another key command.

It seems viewing bar numbers should work like viewing signposts: toggle on and off, regardless of which view you’re in. Just a suggestion!