Compiz has an option to bind a mouse shortcut (eg,
Alt+Button7) to raise or lower the window under the mouse.
I find this a very useful way to switch windows.
Is there any way to replicate this shortcut on Cinnamon?
There doesn't seem to be any built-in support for mouse-button shortcuts.
The closest I could find (this doesn't actually work) is to set a keyboard shortcut to raise window, then bind that to the mouse using
# .xbindkeysrc # Raise window "xset r off; xdotool key Super+F1; xset r on;" Alt + b:7
I verified that they keyboard shortcut works, and
xbindkeys works for other actions with the same mouse button, but this binding does nothing (it does type a
P in terminal; not sure why).