Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I want to set up cinnamon to switch workspaces right and left when I press my mouse scroll wheel clicker right or left, but I don't see an option in the cinnamon settings. Is there any way to accomplish this?

share|improve this question
I think that the mouse scroll wheel clicker right or left are treated as "left arrow" and "right arrow" by the OS. At least that was the case when I had a mouse that did this a few years ago, by mapping "Right arrow" to a function in vlc, I could execute that function using the mouse. –  terdon Dec 8 '12 at 16:51

2 Answers 2

[I think this is most appropriate to list as a separate answer, 2.5 years later]

It is possible to do this with the assistance of xbindkeys.

Install (#apt-get install xbindkeys), and then add this to the bottom of ~/.xbindkeysrc:

# Previous desktop
"dbus-send --session --type=method_call --dest=org.Cinnamon /org/Cinnamon org.Cinnamon.switchWorkspaceLeft"

# Next desktop
"dbus-send --session --type=method_call --dest=org.Cinnamon /org/Cinnamon org.Cinnamon.switchWorkspaceRight"

(b:6 and b:7 are respectively the left and right rocker buttons on my mousewheel -- ymmv; use xev to work out the correct indices).

xbindkeys should reload its own configuration automatically, but you may need to force it with killall -HUP xbindkeys. You may also need to log out and in again after installing it for the first time.

share|improve this answer

I'm also really keen on getting this working (it's one thing I really miss from compiz!). Right now, as far as I'm aware, the Cinnamon/Muffin API doesn't seem to expose the necessary events, but as soon as it does I will write an extension to do this. In the mean time, there is an extension available that I'm using as a second-best solution. Perhaps it will be helpful for you too.

share|improve this answer
to upvoter -- added a new answer below which may be attractive. –  simon Jul 18 at 20:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.