I'm trying to bind a switch window button on my mouse into Ubuntu. Currently I'm trying to do it with xbindkeys and xte, but do this in .xbindkeysrc only outputs a Tab and doesn't switch windows.
Current .xbindkeysrc code:
"'xte' 'keydown Alt_L' 'keydown Tab' 'keyup Tab' 'keyup Alt_L'"
b:10
I am wondering if there is a different command I could put that would directly give instructions to switch windows.
EDIT: I also tried xdotool, here is the code using it:
"xdotool keydown alt key Tab && sleep 1 && xdotool keyup alt"
b:10
It didn't work either.
EDIT2: I tried the xdotool one in the command line and it worked. Is there some reason it doesn't work with xbindkeys?