The idea is to set per application keyboard shortcut. A hook after that application window get focus and before it's lost focus is needed to switch the keybinding. This question is related to ...
Like hooks in svn or git, can I install a server-side hook script for rsync daemon? For sync completion event. I am using FreeBSD9/rsyncd.