I just bought a new mouse with more buttons than my old one. While they work fine and I can navigate back and forth with the thumb buttons, I would like to know if I can somehow change thumb buttons so that I can switch between windows (basically like Alt+Tab).

I took a look at "xbindkeys", but it does not do what I am looking for, since I had no option to add Alt+Tab to the mouse button:8.

As a bonus: would it be possible to assign different shortcuts per app?

  • 1
    I am not sure if this is an answer to your question, but maybe you can find suggestions here: askubuntu.com/questions/19569/…
    – mazienho
    Commented Aug 27, 2015 at 18:09
  • Thanks mazienho, that as exactly what I was looking for. I will edit my question, so that it shows the solution that worked for me. Commented Aug 27, 2015 at 19:53
  • 1
    Please add an answer, and mark this answer as "accepted", so that the question does not show up in the "unanswered" category.
    – arc_lupus
    Commented Aug 28, 2015 at 9:36
  • I have removed "SOLVED" from the title (and also the answer from the question text). Instead of writing solved, StackExchange uses "accepted answers", you can read more about it here. In short: Click the checkmark under the answer which solves your problem and is most helpful. Only the person asking the question can do this.
    – quassy
    Commented Aug 28, 2015 at 12:05
  • Sorry about that, I wanted to remove it but I forgot. And thanks for spotting and changing. Commented Aug 28, 2015 at 12:06

1 Answer 1


Although I did install xbindkeys, I did not install xautomation, which allowed me to automate and assign key combinations like alt+tab. For a detailed explanation, you can follow the link posted by mazienho which gives a good example how xbindkeys and xautomation are working together. In order to achieve what I was looking for, I added the following lines to my .xbindkeysrc file:

"xte 'keydown Alt_L' 'key Tab' 'keyup Alt_L'"  

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.