I think I'm getting to close to workaround to my problem. I'm using xbindkeys for switching apps to fullscreen. Thanks to xbindkeys I can capture keycodes from BT keyboard and assign them some function/command. Code: # Capture multiple key codes - popup will shows up where the keys should be captured and codes are then shown in original terminal. xbindkeys -mk Captured codes can be inserted in xbindkeys config file with associated command. So far so good. What I don't know is how to initiate certain keypress event from xbindkeys as a command. Can anybody give me some hint how to invoke keypresses from terminal? Thanks! Edit: Answer to my question is: xdotool
# Capture multiple key codes - popup will shows up where the keys should be captured and codes are then shown in original terminal. xbindkeys -mk