title: Simulating key press using bash
body: <p>I try to run gedit from terminal and type some text in a file opened there, but have no success. I try to use <code>gedit; sleep 2; xte -x display 'key k';</code> command but this one run gedit only(without typing the k char). Can some one chip in me?</p>