events - How can a background Python process not simply monitor but capture shortkeys? -



events - How can a background Python process not simply monitor but capture shortkeys? -

i want have little python programme run in background monitoring keystrokes. when detects shortkey, want capture (i.e. not allow propagate focussed application) , corresponding shortkey.

to specific, want programme watch key combinations , run little script snap windows around according shortkeys. let's it's terminal window want snap side of screen. key here not want shortkey propagate terminal; want programme capture it, not monitor it.

how done on ubuntu?

python events ubuntu key x11

Comments

Popular posts from this blog

python - How to add an model instance to a django queryset? -

Using Android Volley to post an array to PHP -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -