Although gsettings
cannot change schemaless keys in dconf, dconf
can. You do not need to write your own program. What you can do to change the number of rows in the workspace switcher is:
- install the
dconf-tool
package
- run
dconf
as
dconf write /org/gnome/gnome-panel/layout/objects/workspace-switcher/instance-config/num-rows 2
You can play with lots of other gnome-panel entries with
dconf-editor
as well.
Run the following, apparently gnome3 stores configuration in binary form (I haven't read up on dconf enough to know where or why).
sudo apt-get install dconf-tools
Run: dconf-editor
to edit the config.
Go to: org.gnome.gnome-panel.layout
(it's pretty intuitive)
The defaults seem to be:
object-id-list ['menu-bar', 'indicators', 'show-desktop', 'window-list', 'workspace-switcher']
toplevel-id-list ['top-panel', 'bottom-panel']
I had to figure this out after I had some weird issue with gnome while trying to get my 2 monitors to work. Everything (menus, rows, clock, etc.) seemed to duplicate on the panel after every attempt to restart the X server. I should have took a screenshot but this is essentially what I had before I fixed it:
object-id-list ['menu-bar', 'indicators', 'show-desktop', 'window-list', 'workspace-switcher', 'menu-bar-0', 'indicators-0', 'show-desktop-0', 'window-list-0', 'workspace-switcher-0', 'menu-bar-1', 'indicators-1', 'show-desktop-1', 'window-list-1', 'workspace-switcher-1']
toplevel-id-list ['top-panel', 'bottom-panel', 'top-panel-screen1', 'bottom-panel-screen1', 'top-panel-screen1-0', 'bottom-panel-screen1-0']
As you can see, there's 3 of everything.
Best Answer
With both panels at the bottom try this:
Push Alt + F2 and type
gconf-editor
Navigate to
/apps/panel/general
In the list on the right side, double-click on the
toplevel_id_list
itemSwitch the two items using the Up/Down buttons (in my case I switched from
bottom_panel_screen0 top_panel_screen0
totop_panel_screen0 bottom_panel_screen0
):Close the
gconf-editor
, log out and back in again.