11

When I run Teamviewer on Windows, when I press Alt+Tab, TeamViewer catches it and sends it to the remote OS, which then switches its windows.

But when I'm running Teamviewer on Linux Mint (Mate) and I press Alt+Tab, I just switch from Teamviewer to another window on my host computer.

Is there a way to make Teamviewer catch the Alt+Tab key combination? Perhaps the Window manager (marco in this case) can be told to not process Alt+Tab if the current window is Teamviewer?

sashoalm
  • 3,942
  • 14
  • 49
  • 76

2 Answers2

18

I found a solution by chance (but I've since switched to Lubuntu):

Alt+WinKey+Tab works! It's a bit cumbersome shortcut, but it's better than nothing. But I've tested it only on Lubuntu (which uses Openbox as the window manager). Still, I think it should work on MATE too.

sashoalm
  • 3,942
  • 14
  • 49
  • 76
2

From marco's Github page:

 - Global keybinding defaults include:

    Alt-Tab                forward cycle window focus
    Alt-Shift-Tab          backward cycle focus
    Alt-Ctrl-Tab           forward cycle focus among panels
    Alt-Ctrl-Shift-Tab     backward cycle focus among panels
    Alt-Escape             cycle window focus without a popup thingy
    Ctrl-Alt-Left Arrow    previous workspace
    Ctrl-Alt-Right Arrow   next workspace
    Ctrl-Alt-D             minimize/unminimize all, to show desktop

   Change keybindings for example:

     gsettings set org.mate.Marco.global-keybindings switch_to_workspace_1 'F1'

   Also try the MATE keyboard shortcuts control panel.

   See marco.schemas for all available bindings.

So you could either use gsettings to change the shortcut for cycle_windows or use dconf-editor to do the same using a GUI. To use dconf-editor, run:

sudo apt-get install dconf-tools

The key bindings you'll need to change should be under:

org → mate → Marco → global-keybindings
Vinayak
  • 10,625
  • 10
  • 54
  • 89
  • 1
    This sounds like changing Alt+Tab for all windows, which is not what I need. I need to disable it for Teamviewer connection window, but keep it enabled for all other windows. – sashoalm Mar 09 '15 at 19:55
  • @sashoalm I have no way of testing this at the moment, but does [AutoKey](https://code.google.com/p/autokey/) help? You could [create a 'phrase'](http://www.howtogeek.com/howto/26913/how-to-customize-shortcut-keys-for-any-linux-application/) that sends `+` to the window filter `TeamViewer.exe.Wine` when you press a custom shortcut (say **Shift+Alt+S**). – Vinayak Mar 09 '15 at 22:10