mate-desktop / marco

MATE default window manager
https://mate-desktop.org
GNU General Public License v2.0
195 stars 86 forks source link

Set Keybinding to Previous Window in Application Switcher #281

Open nabsiddiqui opened 8 years ago

nabsiddiqui commented 8 years ago

Currently you can Alt-Tab to the next window in the application switcher andn Alt-Shfit-Tab to the previous window. Alt-Shift-Tab is very difficult to hit easily. Is it possible to create a keyboard shortcut that allows you to switch to the previous window? I usually set Super+J as my next window and would like to set Super+K as my previous window in the application switcher.

In addition, I didn't wan't to open a seperate issue for this, but is it possible to set two different key shortcuts to a command?

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/36543929-set-keybinding-to-previous-window-in-application-switcher?utm_campaign=plugin&utm_content=tracker%2F841233&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F841233&utm_medium=issues&utm_source=github).
milouse commented 4 years ago

There are hidden parameters for that:

Thus, if you set Super+J in replacement of Alt+Tab, you may be interested to put Super+K on switch-windows-backward. In that case, you can modify it with the following command:

gsettings set org.mate.Marco.global-keybindings switch-windows-backward "<Mod4>K"

To check if your super key is understood as <Mod4> you can refer to your current settings for switch-windows

gsettings get org.mate.Marco.global-keybindings switch-windows

In any case, let me suggest you to try cycle-windows instead of switch-windows to get rid of the menu during selecting of your next/previous window.

For your other point, it is not possible to have multiple keybinding for the same feature. At least not just with marco. But following what you want to achieve, it may be possible to add a new custom command duplicating one feature with your second keybinding.