Camaleón wrote: > Can xmodmap detect the application is being run and act accordingly? I could only think of writing a script like this: #! /bin/sh xmodmap -e 'keycode 60 = F' & /usr/bin/<application>; xmodmap -e 'keycode 60 = period' While the application is running, the '.' key produces an F; after quitting the application, things are back to normal.