Change Gnome panel profile according to number of displays

Posted by ifischer on Super User See other posts from Super User or by ifischer
Published on 2011-01-09T12:29:27Z Indexed on 2011/01/09 12:55 UTC
Read the original article Hit count: 409

Filed under:
|
|
|

I'm running Ubuntu 10.04 on a Laptop. I have a startup script which enables external displays, if they are connected. It runs at GDM startup, configured in /etc/gdm/Init/Default.

When i'm running without external displays, Gnome should use 2 Panels. When i'm using 2 external displays, Gnome should add an additional Panel to the second display. But this should of course be removed again if i detach the external displays (and restart).

Can i configure this use case by using Gnome Panel-profiles? I read that there is a startup option "--profile" for gnome-panel, but i don't know how and where i could switch the profile, especially because this has to be done after recognizing the number of displays.

Or can i add a general Gnome profile and switch between those profiles somehow to achieve this behavior?

© Super User or respective owner

Related posts about ubuntu

Related posts about ubuntu-10.04