Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I still want to keep my multiple desktops, I want to disable switching desktops with the mouse.

share|improve this question
up vote 9 down vote accepted
cd ~/.config/openbox
cp lubuntu-rc.xml lubuntu-rc.xml.bak

(this makes a backup file so that when you think you've messed it up you could revert it back.)

leafpad lubuntu-rc.xml

and delete the lines which says;

<mousebind button="UP" action="click">
 <action name="DesktopPrevious" />
<mousebind button="Down" action="click">
 <action name="DesktopNext" />

Log out and Log in back again to see the changes!

if you've messed it up and want to revert it back;

cp lubuntu-rc.xml.bak lubuntu-rc.xml

Answer quoted from Lubuntu docs

share|improve this answer
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – Mitch Jun 20 '13 at 5:51
Excellent point. Updated it! – swrobel Jun 25 '13 at 0:10

As of Lubuntu 14.04, the config file format and answer is now slightly different from @SWrobel's answer:

  1. Remove the following lines from ~/.config/openbox/lubuntu-rc.xml:

    <mousebind button="Up" action="Click">
      <action name="GoToDesktop">
    <mousebind button="Down" action="Click">
      <action name="GoToDesktop">
  2. Also remove the Ctrl + Scroll and Ctrl + Alt + Scroll bindings below the above section, if you want to.

  3. Execute this to let the settings take effect immediately [source]:

    openbox --reconfigure
share|improve this answer

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.