View Full Version : [gnome] Two Gnome panel configurations
April 2nd, 2009, 03:03 PM
I'm relatively new to ubuntu but I've managed to get it all set up how I like. I'm running Ubuntu 8.10 on a laptop. Usually I have a second monitor plugged in. Which is what is causing my problem. I have configured it so I have 4 panels two on each monitor, however if I boot into Ubuntu without the second monitor plugged in the panels aren't responsive at all. I end up having two at the bottom and the ones at the top which are usually auto-hide wont display at all.
What I would like to do is have it so when I boot up I can have two configurations one for single monitor with 2 panels and one for dual with 4. Any help would be greatly appreciated.
April 3rd, 2009, 07:21 PM
I don't use the Gnome panel, but I've been looking at similar things switching between one and two monitors.
Does the panel use entries in Gconf to control that sort of thing? If it does, you can set those values from the command line, maybe in a script based on your monitor config. When I get back to Linux I may check more on this.
April 4th, 2009, 07:26 PM
From exploring as far as I can tell the file in home/.gconf/apps/panel/general has a toplevel_id_list which seems to store the names of all the panels in. If anyone could confirm this, it would be very helpful.
So if I were to write a script that changed this file, to remove two of the panels in the list and another to re enter the two panels. How would I load this script before logging in or booting up Ubuntu?
April 4th, 2009, 10:27 PM
In your Preferences main menu, it will be Sessions or Startup Applications. You can add scripts to run when you log in.
April 5th, 2009, 12:34 AM
Ok will try and read more about sessions tomorrow and look into writing a script, thanks for your help Sam.
November 8th, 2009, 02:28 AM
Hi Cyc. I'm wondering if you ever got this script working? I am using dual monitors and I'd like the second monitor to hide it's panel when I'm only using one monitor.
November 8th, 2009, 01:19 PM
No sorry I didn't manage to.
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.