Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 know how to disable Sticky Edges via the Settings->Display UI, however, I want to be able to do it via command line or config file.

Does anyone know how to disable "sticky edges" via a command or config file?

Where does Ubuntu store the config option?

share|improve this question

The following command disables the sticky edges:

dconf write /org/compiz/profiles/unity/plugins/unityshell/launcher-capture-mouse false

And this one re-enables them:

dconf write /org/compiz/profiles/unity/plugins/unityshell/launcher-capture-mouse true
share|improve this answer
    
you don't happen to know what the equivalent would be using gsettings? – myol Feb 2 at 22:52
1  
@myol, Here is gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-capture-mouse false – Sneetsher Feb 2 at 23:58

It could be /org/compiz/profiles/Default/plugins/core/active-plugins key in dconf database:

  1. To check open terminal, run dconf watch /

  2. Open CompizConfig Settings Manager, try Enable and Disable required options. Watch for change in terminal.

  3. Use command dconf write KEY VALUE to set needed settings

    dconf read /org/compiz/profiles/Default/plugins/core/active-plugins
    dconf write /org/compiz/profiles/Default/plugins/core/active-plugins <value>
    
    gsettings get org.compiz.core:/org/compiz/profiles/Default/plugins/core/ active-plugins 
    gsettings set org.compiz.core:/org/compiz/profiles/Default/plugins/core/ active-plugins <value>
    

Reference: man dconf, if you want to see all possible options, try dconf-editor

share|improve this answer
    
you don't happen to know what the equivalent would be using gsettings? – myol Feb 2 at 22:52
    
@myol, updated but this was only for Ubuntu 12.04, check Sylvain Pineau's answer. For Ubuntu 14.04 – Sneetsher Feb 2 at 23:55

Your Answer

 
discard

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.