Is there a way to send the switch windows signal without "Alt-Tab"?

Solution 1:

I got it to work. Turns out that I needed to put a pause between keydown alt and key tab. I also put the xdotool code in an .sh file so I could modify it without restarting xbindkeys every time.

Working xdotool code:

xdotool keydown alt
sleep .1
xdotool key Tab key alt

Solution 2:

xte works too, if you use it like

"xte 'keydown Alt_L' 'key Tab' 'keyup Alt_L'"
  b:10