Is there some way to have window shortcuts subject to matching some condition? For example, set up a key combination to close the current window, but only if the window belongs to a certain class, or has a certain name? I've been reading the documentation of wmctrl and xdotool and it doesn't seem possible... TIA Jorge Almeida