I have a laptop with Ubuntu installed on it and I'm constantly switching from just my laptop to also having a monitor. When I'm using the laptop screen and monitor, I have a panel on each monitor that shows the windows open for that monitor. If I switch to just using the laptop screen, then both panels end up on the same screen. How can I configure one of the panels to only show up if I have two monitors? Or can I at least "suspend" one of the panels somehow so I don't have to set it up the way I like it every time I switch?
Try setting the screen option for this panel via gconf-editor.
Run gconf-editor and navigate to the panel options at
I'm not sure this will work, as I have a feeling that when you switch to using just the laptop screen, this value is automatically changed to the available screen. It's worth a shot.
If you use Xinerama, there's also an option to configure the monitor the panel appears on.
If none of these work, I'd suggest you enable
I haven't researched this yet, but if there is a command-line way to modify these values, I'd just use a script to tweak these values so the panel is hidden when I want it.
Here's what I did (on Ubuntu 10.04):
To fully hide the panel, you can set monitor to
There is a blog post here with a simple script that you can hook onto nvidia-settings or gnome-display-properties:
Since I use Nvidia, I did
GConf includes a command line tool, gconftool-2. You can use the gconftool–2 command to perform the following tasks:
For example, use the following command to display the values of all keys in the /desktop/gnome directory and subdirectories.