How To Disable Sticky Edges via Command Line?

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?


Solution 1:

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

Solution 2:

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