I'm using gnome with Xmonad as my window manager on Ubuntu 11.10. When I use a external monitor with my laptop, extending the desktop with either nvidia-settings or disper, the gnome-panels (Top bar and running applications/workspaces bar) seem to display on either monitor randomly. How can I either force them to use one monitor or change their position with a scriptable command that I can hot-key?
Here are things that don't work:
- I can move them by right click->Properties-> Uncheck "expand" -> Alt-drag, etc. This works, but requires way too much mouse-work every time I plug in my external monitor.
- Using gconf-editor to change any of the gnome-panel settings doesn't actually change anything:
gconftool-2 --type string --set /apps/panel/toplevels/top_panel_screen0/orientation topThe
/monitor "1"setting also doesn't change anything
 gpoo's solution is almost correct - just use dconf instead of gsettings.
dconf write /org/gnome/gnome-panel/layout/toplevels/bottom-panel/monitor 1
gsettings doesn't let me change the required keys, though it's likely I just can't understand its cryptic and undocumented syntax. All of
gsettings need man pages. (gsettings's man page does nothing to explain what the terms mean.)