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'd like to change org.compiz.profiles.unity.plugins.core -> hsize and -> vsize from command line.

I thought I could use

gsettings set org.compiz.profiles.unity.plugins.core vsize 4

but then I've got an error message:

No such schema 'org.compiz.profiles.unity.plugins.core'

Is it possible at all? The setting can be clearly seen, as on the attached screenshot.

enter image description here

share|improve this question
    
Reduce number of workspaces. – Lucio Apr 21 '14 at 1:16
up vote 30 down vote accepted

You can use dconf:

To get the current values:

dconf read /org/compiz/profiles/unity/plugins/core/hsize
dconf read /org/compiz/profiles/unity/plugins/core/vsize

To set new values:

dconf write /org/compiz/profiles/unity/plugins/core/hsize 2
share|improve this answer
    
As I understand, gsettings is a preferred over dconf. It offers higher-level access to the dconf database. But I might be wrong. – Adam Ryczkowski Apr 16 '14 at 9:41
1  
This is only valid for application developers where the Gsettings API offers a cross platform access to the configuration database. Dconf access in your case (command line) is perfectly valid. – Sylvain Pineau Apr 16 '14 at 9:57
    
@SylvainPineau Maybe is getting out of the range of the initial question, but is there a way to allow Wrap-Around (if i'm at WS 1 and i go up, ill get to the last WS) through command line? – frank Feb 9 at 15:32
1  
@frank you can use dconf write /org/compiz/profiles/unity/plugins/wall/allow-wraparound true to enable Wrap-Around and dconf write /org/compiz/profiles/unity/plugins/wall/allow-wraparound to disable it. – Sylvain Pineau Feb 9 at 16:38

The schema is org.compiz.core and it is a relocatable scheme (this makes it possible to support multiple profiles for Compiz).

For relocatable schemes you have to add the path if you use gsettings. It's /org/compiz/profiles/unity/plugins/core/ for the Compiz profile unity:

gsettings set org.compiz.core:/org/compiz/profiles/unity/plugins/core/ hsize 4
gsettings set org.compiz.core:/org/compiz/profiles/unity/plugins/core/ vsize 4
share|improve this answer

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.