View Full Version : How to use Openbox in GNOME and by itself.
Stormy Eyes
October 13th, 2005, 07:06 PM
Introduction
Metacity, while a fair default, is not the only window manager you can use with GNOME. Openbox (http://www.openbox.org) is a lightweight, customizable window manager that works either by itself or as a drop-in replacement for Metacity. Its advantages include the ability to switch desktops with the mouse wheel, a built-in, customizable menu that allows stand-alone operation with some GNOME components in order to build a GNOME-like system on low-end gear, and (this is subjective) better looking, cleaner themes that don't depend on resource-intensive pixmaps.
Installation and Basic Usage
If you have the Universe repository, all you have to do to install Openbox is enter a command:
sudo apt-get install openbox obconf
Once you've installed it, you can replace Metacity with Openbox with a single command entered into GNOME's "Run" prompt, which can be accessed by hitting ALT+F2. This prompt used to be reachable through the menu in GNOME 2.10, but the menu item was removed from GNOME 2.12.
openbox --replace
If you choose to save your session on logout, your next GNOME session will use Openbox as its window manager and not Metacity.
Installation and Selection of Themes
Now that you have Openbox running, you'll probably need some themes. I can help you with that, being an Openbox fan. But first, I should tell you how to obtain, install, and select themes.
Once you have downloaded a theme to your home directory, open a terminal and enter the following commands (This example assumes you've downloaded Mistodon to $HOME):
cd ~/.themes
tar xzvf ~/mistodon.tar.gz
Under GNOME, find "ObConf" in Applications -> Other -> Obconf and select your new theme.
Theme List and Links
The following list names themes I've made available to the public, with screenshots and descriptions. As other users provide links to their themes, I will post them after my list.
Mistodon (http://www.starbreaker.net/download/mistodon.tar.gz) (Screenshot) (http://ubuntuforums.org/gallery/showimage.php?i=237): A clean theme to match the GTK2 theme "Mist".
Pandora (http://www.starbreaker.net/download/pandora.tar.gz) (Screenshot) (http://ubuntuforums.org/gallery/showimage.php?i=247): Named after a certain overly curious girl from Greek myth, Pandora is brown to match Ubuntu's coloring, and as clean as Mistodon.
Martian (http://www.starbreaker.net/download/martian.tar.gz) (Screenshot) (http://ubuntuforums.org/gallery/showimage.php?i=250&c=5): Made to match the default "Human" theme for Hoary. I call it Martian because I was reading Heinlein's Stranger in a Strange Land in the john when I realized that Pandora didn't quite match Ubuntu's colors.
Forum member Smoon (http://www.ubuntuforums.org/member.php?u=15862) has his own theme page. (http://nooms.de/?page=openbox) It's written in German, but the screenshots provide adequate explanation.
Also, boxwhore.org (http://www.boxwhore.org) hosts Openbox themes with screenshots. (No, I didn't pick the name.)
More importantly, the developers/maintainers of Openbox provide documentation at this location. (http://icculus.org/openbox/docs.php?page=toc.html) It covers the basic operating principles, though it doesn't offer in-depth coverage on how to theme Openbox. I may provide a section on advanced theming later on.
Since Openbox does not handle setting wallpapers, you have to use external tools. I recommend feh (http://www.linuxbrit.co.uk/feh/), which is primarily an image viewer but includes "set wallpaper" functionality both in its menu and as a commandline tool.
Fun with Keybindings; or, getting an ALT+Tab that rocks like ninja.
Openbox's default ALT+Tab functionality is a bit limited compared to Metacity, which shows a dialog listing all the open apps on a given workspace similar to Windows. You don't have to settle for Openbox's anemic ALT+Tab. If you're using Openbox, try middle-clicking anywhere on your desktop. You'll see a menu listing each of your workspaces, starting with the first, and each workspace entry will have a submenu displaying the running windows on that workspace, with iconified (minimised) windows in brackets.
It's also possible to bind this menu, which is referred to internally as the "Client List Menu", to any key you like, and then to navigate that menu with your keyboard's arrow keys. Just follow the steps below.
1. Open a terminal and enter the following command:
gedit ~/.config/openbox/rc.xml
2. Once you've opened up Openbox's config file, scroll down until you see the following text:
<keybind key="A-Tab">
<action name="NextWindow"/>
</keybind>
<keybind key="A-S-Tab">
<action name="PreviousWindow"/>
</keybind>
3. Replace the text shown above with the following text:
<keybind key="A-Tab">
<action name="ShowMenu"><menu>client-list-menu</menu></action>
</keybind>
<keybind key="A-S-Tab">
<action name="ShowMenu"><menu>client-list-menu</menu></action>
</keybind>
4. Save your changes and close the editor.
5. If you're using Openbox as part of GNOME, and Openbox is part of your GNOME session, then typing killall openbox at the terminal should cause GNOME to restart Openbox for you. If GNOME won't play ball, you should be able to click on the Applications menu, select "Run Application", and type "openbox" into the prompt. Or, you could avoid all this by logging out and logging in again. If you're using Openbox on its own, then right-click on the desktop for the main menu, and choose the Reconfigure option. Openbox will reread its config file.
By following the above steps, you've modified the keybindings for ALT+Tab and SHIFT+ALT+Tab to bring up the same client list menu that appears when you middle-click on the desktop. You can navigate it using your arrow keys, and press "Enter" to go to a running app, even if that app is on a different workspace.
More Fun with Keybindings; or, opening apps without reaching for the rodent.
So, are you tired of having to take your hands off the keyboard in order to open a program? I can help you with that too. The principles are the same as when you modified your config, (~/.config/openbox/rc.xml) to give you a sweet ALT+Tab.
Open your config file as explained in "Fun with Keybindings; or, getting an ALT+Tab that rocks like ninja." and do the following:
1. Find the line that reads "<chainQuitKey>C-g</chainQuitKey>". Create a blank line between this keybinding and the next.
2. If you're using GNOME or have gnome-panel running in Openbox, paste the following XML:
<keybind key="A-F1">
<action name="execute"><execute>gnome-panel-control --main-menu</execute></action>
</keybind>
<keybind key="A-F2">
<action name="execute"><execute>gnome-panel-control --run-dialog</execute></action>
</keybind>
The XML shown above uses GNOME's panel to trigger the menu and bring up GNOME's run dialog. It also uses the same keybindings for the menu and run dialog as Metacity, for the purpose of this demonstration. You can change the keybindings to suit your own needs.
If you aren't using GNOME or gnome-panel, but want a "Run Program" dialog, then run sudo apt-get install gmrun from a terminal. Once you've installed gmrun, paste the following XML into the editor at the blank line you created in step 1:
<keybind key="A-F1">
<action name="ShowMenu"><menu>root-menu</menu></action>
</keybind>
<keybind key="A-F2">
<action name="execute"><execute>gmrun</execute></action>
</keybind>
The above code will show you the menu Openbox provides when right-clicking the desktop if it is running as a stand-alone environment. gmrun is an optional package which should be available if you've enabled the Universe repository.
3. Save your changes, close the editor, and restart Openbox.
Even More Fun with Keybindings: Switch to a Specific Desktop
It's possible to configure keybindings in Openbox to allow you to switch to a specific desktop. For the purpose of this demonstration, I'll show you how to use ALT+1 to switch to desktop 1, ALT+2 to switch to desktop 2, etc. Just paste the following code into your ~/.config/openbox/rc.xml file's <keyboard> section, save, and restart Openbox:
<keybind key="A-1">
<action name="Desktop"><desktop>1</desktop></action>
</keybind>
<keybind key="A-2">
<action name="Desktop"><desktop>2</desktop></action>
</keybind>
<keybind key="A-3">
<action name="Desktop"><desktop>3</desktop></action>
</keybind>
<keybind key="A-4">
<action name="Desktop"><desktop>4</desktop></action>
</keybind>
The original HOWTO can be found here. (http://ubuntuforums.org/showthread.php?t=34239). Openbox has not changed much between Hoary and Breezy.
Caveat 0: When running Openbox by itself, running Nautilus without the --no-desktop option will cause Nautilus to take over the desktop, trashing your wallpaper and rendering your menu inaccessable. Keep this in mind when hacking your menu.
Caveat 1: This HOWTO may not work with Fluxbox due to possible incompatibility with the EWMH specs and definite lack of a --replace switch. Also, their config and menu file structures are not XML-based.
cokehabit
October 13th, 2005, 08:42 PM
will this work on fluxbox? ;)
bdash
October 14th, 2005, 12:47 AM
It depends how fluxbox is compliant with freedesktop wm-spec! If not you can have problems with panels and virtual desktops.
Stormy Eyes
October 14th, 2005, 08:44 AM
will this work on fluxbox? ;)
BDash is right about standards-compliance, and I can't guarantee that this HOWTO will work with Fluxbox for two reasons:
1. I don't know if Fluxbox is EWMH-compliant.
2. I do not use or recommend Fluxbox because I consider it slow and clunky.
theine
October 22nd, 2005, 09:26 PM
Instead of executing
openbox --replace
and saving your Gnome session afterwards, you can also put
export WINDOW_MANAGER="/usr/bin/openbox"
into your ~/.gnomerc
Next time you log into Gnome, openbox will be managing your windows.
joakim2
October 23rd, 2005, 02:25 PM
Anyone know what happened to the theme links? I can't seem to get to the starbreaker server. Does anyone else have the themes to post somewhere?
zafar
October 23rd, 2005, 03:48 PM
I'm not sure about those links but I've found a really nice theme, a port of clearlooks. It can be downloaded at http://hewphoria.com/?p=themes&id=127 .
BoyOfDestiny
October 24th, 2005, 08:38 AM
When I was playing with openbox I noticed obconf would also launch when you go Preferences->Windows (going from memory).
I think having the other->obconf entry becomes a waste?
Stormy Eyes
October 24th, 2005, 03:25 PM
Anyone know what happened to the theme links? I can't seem to get to the starbreaker server. Does anyone else have the themes to post somewhere?
My domain expired. I'm working on getting it re-registered. I apologise for the inconvenience. If somebody wants to provide a temp host and PM me with an email address, I'll be happy to send tarballs.
Stormy Eyes
October 24th, 2005, 03:32 PM
Instead of executing
openbox --replace
and saving your Gnome session afterwards, you can also put
export WINDOW_MANAGER="/usr/bin/openbox"
into your ~/.gnomerc
Next time you log into Gnome, openbox will be managing your windows.
I never thought of that. Thanks for mentioning it.
LaSSarD
October 24th, 2005, 04:11 PM
Just a theme suggestion:
Shady Days http://www.uoguelph.ca/~fanguelo/img/shadydays.png (http://www.uoguelph.ca/~fanguelo/skins/shadydays.tar.bz2)
Screen by epicbard.
oddabe19
October 24th, 2005, 04:15 PM
also
apt-get install openbox-themes
includes alot
Stormy Eyes
October 24th, 2005, 06:03 PM
OK. Here's an update for anybody looking for themes hosted at starbreaker.net. I've spoken with my domain name registrar and renewed for two years. It should take 48 hours for the DNS to catch up and point to my site again. You should be able to download themes by Wednesday night, at 6:15PM EST.
rimmer
October 25th, 2005, 04:19 AM
Nice, very nice.
And I'm using it with Gnome at the moment. So how would I go about making openbox the the only WM on my system?, ie, running alone with out gnome in the background. I'm a fluxbox fan but I would like to give this a whirl.
Stormy Eyes
October 25th, 2005, 03:26 PM
Nice, very nice.
And I'm using it with Gnome at the moment. So how would I go about making openbox the the only WM on my system?, ie, running alone with out gnome in the background. I'm a fluxbox fan but I would like to give this a whirl.
When logging in, GDM has a "Sessions" menu. You can pick Openbox instead of GNOME from there, but you'll have an extremely bare environment. You might want to refer to the custom X session howto listed in my sig.
Stormy Eyes
October 26th, 2005, 05:34 PM
I've gotten the domain name registration sorted out, so http://www.starbreaker.net should be back up, along with all of the themes hosted there. Have fun!
alingatong
October 28th, 2005, 06:15 AM
Stormy eyes, can you elaborate more on using openbox by itself? I want to use it as a stand alone, but i cant seem to configure the menu of openbox. I want to add the menu of openbox when i right click on the desktop.
also how can i put some wallpaper in openbox as a standalone?
thanks in advance.
fortytwo
October 28th, 2005, 05:18 PM
Do you know if this will work for hoary as well?
johannes
October 30th, 2005, 03:51 PM
edit: nevermind...
rimmer
October 31st, 2005, 05:21 AM
alingatong
also how can i put some wallpaper in openbox as a standalone?
I ain't a expert but what I found was FEH you can get it from the universal repossudo apt-get install feh.
When you install it you should find a file in you home dir (hidden) called .fehbg. if you don't find it then run feh --bg-scale FILE name of bg you want from the console and that should create the file and will give you a background to openbox. The next thing to do is read this (https://wiki.ubuntu.com/CustomXSession) it will tell you how to get fehbg running from start up.
As for the menu I'm not sure if this is correct, but when I was using gnome I installed the debian menu sudo apt-get install menu
update menu
(I did this in gnome) but when I switched to openbox and right click on the desktop
the debian menu is there.
As for editing the menu I'm not sure I can't find a menu config file.
This is my experiance ! If there is something missing or wrong with the above then I appologise before hand.
joakim2
November 3rd, 2005, 01:44 AM
On an unrelated note... Does anyone know of an Aqua/OS X like theme for Openbox?
SilentCacophony
November 3rd, 2005, 12:43 PM
alingatong
I ain't a expert but what I found was FEH you can get it from the universal repossudo apt-get install feh.
When you install it you should find a file in you home dir (hidden) called .fehbg. if you don't find it then run feh --bg-scale FILE name of bg you want from the console and that should create the file and will give you a background to openbox. The next thing to do is read this (https://wiki.ubuntu.com/CustomXSession) it will tell you how to get fehbg running from start up.
As for the menu I'm not sure if this is correct, but when I was using gnome I installed the debian menu sudo apt-get install menu
update menu
(I did this in gnome) but when I switched to openbox and right click on the desktop
the debian menu is there.
As for editing the menu I'm not sure I can't find a menu config file.
This is my experiance ! If there is something missing or wrong with the above then I appologise before hand.
Good advice. I also use feh for backdrops, and the debian menu. Minor correction:
Rather than:
update menu
AFAIK, this is the correct syntax:
update-menus
Also, since there is no panel/taskbar, some may want to istall one. The ones that I have tried with openbox are fspanel, fbpanel, pypanel, and perlpanel. I believe they are all in the 'universe' repositories for Breezy.
Personally, I like pypanel, because it's simple and more configurable than the fs&fbpanels. Perlpanel looks nice as well, but I din't like the number of dependencies.
As for editing the menu, see:
Configuring Openbox (http://icculus.org/openbox/docs.php?page=config.html&PHPSESSID=2e020e69a17cfc32f53b68184c1897d6#menus)
On an unrelated note... Does anyone know of an Aqua/OS X like theme for Openbox?
I seem to recall a couple that are somewhat similar in the openbox-themes package.
Single
November 6th, 2005, 09:10 AM
How to increase the size of the window title without changing the theme? Setting the font preference from the System menu doens't work anymore.
ispmarin
November 7th, 2005, 10:34 AM
Hello all: I really wants to try openbox, metacity is a little too heavy (even with an amd64 with 1GB of ram and a geforce 6200). So, how can this be done?
Thanks
Ivan
ispmarin
November 8th, 2005, 11:14 AM
Nevermind, I found myself:
metacity --restore
Thanks anyway.
kamagurka
November 30th, 2005, 06:11 PM
What do I have to do to get Openbox's menu when rightclicking on the desktop without ditching gnome? Is there some way of keeping the icons anyway?
ispmarin
December 1st, 2005, 08:47 AM
I dunno...
Problems! My metacity, after restoring it, does not work anymore! I have to kill metacity after the X is up, and then do a metacity --restore... but if I reboot the machine, again I get 10 metacitys trying to open and none working...
What is happening?
brass
December 11th, 2005, 12:45 AM
how can I get the openbox menu when using the gnome/openbox setup? right now, I right click and i get gnomes right-click menu.
I havn't used gnome since '97, and i've been using fluxbox for the last two years. I'm really impressed with gnome, but I miss being able to switch desktops with mouse wheel, and getting the menu from anywhere on the desktop. Thanks for the tutorial, now I have desktop wheeling, but I'm still missing my menu.
martibs
December 22nd, 2005, 02:52 PM
Hi, I'm just wondering if there's an easy way of converting the gnome-panel main menu into an Openbox menu. The thing is that I want to remove the panel, but still need the shortcuts to the applications in the menu.
Stormy Eyes
December 29th, 2005, 11:06 PM
What do I have to do to get Openbox's menu when rightclicking on the desktop without ditching gnome? Is there some way of keeping the icons anyway?
No. Openbox by itself doesn't concern itself with icons.
ritger
January 2nd, 2006, 12:04 PM
Everything works fine after following the how-to, i just have one problem. When using OpenBox the window movement becomes choppy, without OpenBox throwing any errors. Weird thing is, only vertical movement is choppy, horizontal is fine. I've already tried turning off the window snap stuff, which didn't do much. Google also isn't much help. The problem occurs when both replacing Metacity and stand-alone.
Anyone else noticing this problem?
darkfox
January 7th, 2006, 04:29 PM
Just a quick post to say thank you Stormy Eyes - this is a fantastic HowTo. I followed it, learnt loads about the graphical environment in Linux quickly, and ended up ditching Gnome entirely in the end for a pure OpenBox experience (Gnome's fantastic but I just don't need most of the stuff it gives me, so why wait?!).
tafsen
January 7th, 2006, 07:54 PM
How do I get rid of the drop shadow from the theme mistoden?
lleberg
January 8th, 2006, 01:27 PM
I used this how-to, to try openbox!
Now i do have some problems with it!
Lets start with booting..
I can log in graficly, but nothing starts, openbox does though, because i can windowskey-r to start a terminal (bound it myself), wich is opened in openbox. I start the gnome-panel to have some thing to click on.
If i run a ps aux, i have, among others, but this seems less usual.
lleberg 22036 0.0 0.1 7756 1948 ? Ss 18:19 0:00 openbox restart
lleberg 22038 0.0 0.1 7760 1944 ? Ss 18:19 0:00 openbox restart
lleberg 22040 0.0 0.1 7760 1932 ? Ss 18:19 0:00 openbox restart
lleberg 22042 0.0 0.1 7756 1936 ? Ss 18:19 0:00 openbox restart
lleberg 22044 0.0 0.1 7760 1940 ? Ss 18:19 0:00 openbox restart
lleberg 22046 0.0 0.1 7756 1932 ? Ss 18:19 0:00 openbox restart
lleberg 22048 0.0 0.1 7756 1936 ? Ss 18:19 0:00 openbox restart
lleberg 22050 0.0 0.1 7760 1940 ? Ss 18:19 0:00 openbox restart
lleberg 22052 0.0 0.1 7760 1932 ? Ss 18:19 0:00 openbox restart
lleberg 22054 0.0 0.1 7756 1936 ? Ss 18:19 0:00 openbox restart
lleberg 22056 0.0 0.1 7760 1936 ? Ss 18:19 0:00 openbox restart
lleberg 22058 0.0 0.1 7756 1928 ? Ss 18:19 0:00 openbox restart
lleberg 22060 0.0 0.1 7756 1932 ? Ss 18:19 0:00 openbox restart
lleberg 22062 0.0 0.1 7760 1932 ? Ss 18:19 0:00 openbox restart
lleberg 22063 0.0 0.0 0 0 ? R 18:19 0:00 [gnome-session]
lleberg 22064 0.0 0.1 7760 1940 ? Ss 18:19 0:00 openbox restart
And it runs "as usual", without having a real Desktop... could probably start it if i knew how! Can't start gdm, don't know if it's because of this openbox-story, or why it is, but it's there! How could this be?
lleberg@Margit:~$ /etc/init.d/gdm start
* Starting GNOME Display Manager... [fail]
How do i.. undo all that has been done? ;)
Edit: "Undo, redo, or if you change your mind, you can redo what you last undid!" <- that takes me back to the days with.. some picturing-game i had when i was little.
Edit2: gnomepanel wasn't exactly.. flawless!
lleberg@Margit:~$ gnome-panel
(gnome-window-properties:8901): GdkPixbuf-CRITICAL **: gdk_pixbuf_new_from_data: assertion `width > 0' failed
(gnome-window-properties:8901): GdkPixbuf-CRITICAL **: gdk_pixbuf_scale: asserti on `src != NULL' failed
(gnome-window-properties:8901): GLib-GObject-CRITICAL **: g_object_unref: assert ion `G_IS_OBJECT (object)' failed
(gnome-window-properties:8901): GdkPixbuf-CRITICAL **: gdk_pixbuf_new_from_data: assertion `width > 0' failed
(gnome-window-properties:8901): GdkPixbuf-CRITICAL **: gdk_pixbuf_scale: asserti on `src != NULL' failed
(gnome-window-properties:8901): GLib-GObject-CRITICAL **: g_object_unref: assert ion `G_IS_OBJECT (object)' failed
(gnome-window-properties:8901): GdkPixbuf-CRITICAL **: gdk_pixbuf_new_from_data: assertion `width > 0' failed
(gnome-window-properties:8901): GdkPixbuf-CRITICAL **: gdk_pixbuf_scale: asserti on `src != NULL' failed
(gnome-window-properties:8901): GLib-GObject-CRITICAL **: g_object_unref: assert ion `G_IS_OBJECT (object)' failed
(gnome-window-properties:8901): GdkPixbuf-CRITICAL **: gdk_pixbuf_new_from_data: assertion `width > 0' failed
(gnome-window-properties:8901): GdkPixbuf-CRITICAL **: gdk_pixbuf_scale: asserti on `src != NULL' failed
(gnome-window-properties:8901): GLib-GObject-CRITICAL **: g_object_unref: assert ion `G_IS_OBJECT (object)' failed
(gnome-window-properties:8901): GdkPixbuf-CRITICAL **: gdk_pixbuf_new_from_data: assertion `width > 0' failed
(gnome-window-properties:8901): GdkPixbuf-CRITICAL **: gdk_pixbuf_scale: asserti on `src != NULL' failed
(gnome-window-properties:8901): GLib-GObject-CRITICAL **: g_object_unref: assert ion `G_IS_OBJECT (object)' failed
(gnome-window-properties:8901): GdkPixbuf-CRITICAL **: gdk_pixbuf_new_from_data: assertion `width > 0' failed
(gnome-window-properties:8901): GdkPixbuf-CRITICAL **: gdk_pixbuf_scale: asserti on `src != NULL' failed
(gnome-window-properties:8901): GLib-GObject-CRITICAL **: g_object_unref: assert ion `G_IS_OBJECT (object)' failed
/usr/lib/gnome-app-install/AppInstall.py:196: GtkWarning: gtk_accel_label_set_ac cel_closure: assertion `gtk_accel_group_from_accel_closure (accel_closure) != NU LL' failed
LaunchpadIntegration.add_items (widget, -1, False, True);
(synaptic:15974): Gtk-CRITICAL **: gtk_accel_label_set_accel_closure: assertion `gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed
(synaptic:15974): Gtk-CRITICAL **: gtk_accel_label_set_accel_closure: assertion `gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed
(synaptic:15974): Gtk-CRITICAL **: gtk_widget_destroy: assertion `GTK_IS_WIDGET (widget)' failed
(services-admin:28166): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
Warning: more than one line!
Warning: more than one line!
Warning: more than one line!
Warning: more than one line!
Warning: more than one line!
Warning: more than one line!
Warning: more than one line!
Warning: more than one line!
Warning: more than one line!
Warning: more than one line!
marteus
January 14th, 2006, 03:38 AM
How do I get rid of the drop shadow from the theme mistoden?
You can edit the ~/.themes/Mistodon/openbox-3/themerc
in section !! font me! (line 109) edit (or perhaps just remove) :shadow=y:shadowoffset=3 from each item
kuad
February 27th, 2006, 06:23 AM
Hello I'm trying to use .xsession to have openbox working by itself. Below is my .xsession. I think gnome-settings-daemon is interfering (not sure of a better word) with pypanel and conky loading. Once I log in, I see the standard Ubuntu brown screen and then conky appears, except the fonts are very small. AFTER this I believe gnome-settings-daemon finishes loading because my wallpaper as in Gnome then appears, but this covers up conky, even though gnome-settings-daemon is before conky in .xsession. Note that pypanel doesn't even appear to load!
I know the fonts are related to gnome-settings-daemon because if I manually start pypanel or conky later, the fonts look as they do in Gnome. But if gnome-settings-daemon isn't running then the fonts look small on both.
I have changed around the order of the entries in .xsession but to no avail. Pypanel doesn't want to load and conky always shows up with small fonts. I've resorted to not attempting to run pypanel and conky from .xsession and am manually starting them.
So my problems are: getting pypanel to run and getting the fonts for both pypanel and conky to look "normal". Some help please?
I'm a noob so go easy on me.
gnome-settings-daemon &
gnome-volume-manager &
pypanel &
conky &
exec openbox
PS Openbox is cool, once I get round to it I'll post some Openbox scripts that I've hacked together as part of my learning experience.
Stormy Eyes
February 27th, 2006, 07:36 PM
Try adding "sleep 10s" to your script. Put it right after the "gnome-settings-daemon &" call.
kuad
February 28th, 2006, 05:43 AM
Try adding "sleep 10s" to your script. Put it right after the "gnome-settings-daemon &" call.
Thanks Stormy Eyes that worked. Actually I tried "sleep 1s" and it still worked.
-------------
Attached is my first python script. It'll generate an Openbox pipe menu to list all the graphic files in a directory and you can choose which to set as the background. I wrote it mostly because I wanted to use Openbox by itself but still be able to change the wallpaper. Since I was running gnome-settings-daemon anyway, I figured I could use gconftool to set the wallpaper. More details are in the file.
gnome-settings-daemon must be running.
Sutekh
April 11th, 2006, 07:27 AM
Hey thanks a lot for this HOWTO Stormy Eyes!
I installed Openbox on a fresh install of Dapper to have a play around and its flippin fantastic! Running feh to cover the desktop, fbpanel, xterm, quod libet and at the moment that's about it.
My hardware is a bit of overkill, but I really love the speed and ability to customise.
My only question (at this stage) is how can I change the themes of GTK apps, without installing gnome-settings?
Cheers,
hugmenot
April 14th, 2006, 06:20 AM
Hey thanks a lot for this HOWTO Stormy Eyes!
I installed Openbox on a fresh install of Dapper to have a play around and its flippin fantastic! Running feh to cover the desktop, fbpanel, xterm, quod libet and at the moment that's about it.
My hardware is a bit of overkill, but I really love the speed and ability to customise.
My only question (at this stage) is how can I change the themes of GTK apps, without installing gnome-settings?
Cheers,
Install gtk-theme-switch!
Sutekh
April 14th, 2006, 08:14 PM
Install gtk-theme-switch!
Beautiful! Thanks for that. I also found gtk-chtheme (http://plasmasturm.org/code/gtk-chtheme/), both work great.
I don't suppose you know how to change the GTK theme of applications opened by sudo, ie Synaptic? It sill has an ugly GTK theme.
hugmenot
April 16th, 2006, 12:01 PM
Beautiful! Thanks for that. I also found gtk-chtheme (http://plasmasturm.org/code/gtk-chtheme/), both work great.
I don't suppose you know how to change the GTK theme of applications opened by sudo, ie Synaptic? It sill has an ugly GTK theme.
I don't know. You could try “sudo -i gtk-theme-switch2”. -i changes to user's home first.
Sutekh
April 18th, 2006, 05:58 AM
I don't know. You could try “sudo -i gtk-theme-switch2”. -i changes to user's home first.
Of course that was obvious. Thanks for the helping hand
greenwom
May 1st, 2006, 06:33 PM
The how-to worked great but I wanted to go back.
I ran
metacity --replace
but now when I restart the computer GDM hangs when loading metacity.... Any clue?
RenZO
May 15th, 2006, 12:37 PM
Yeah, great howto !
I'm using openbox with gnome. However, I've a little problem : when i use the display desktop button, in order to iconify all windows, it works. But if now I choose one window, it displays on first plan, but with all other windows in second plan !!
Is it possible to NOT restore all windows after displaying desktop ?
I'm french, sorry for syntax.
Thanks
RenZO
oss_monkey
July 21st, 2006, 02:20 AM
Thanks for the tutorial, Stormy Eyes! I'm on OpenBox and I wonder what I've been doing with all that resources I've freed up.
I've got question, though.
Is there a repository of "toys" to put in the now-bare desktops? I mean, what would I need to get something like this:
http://offload1.icculus.org/openbox/shots/full/cronos.jpg
Pretty impressive, IMHO.
I'll be installing gdesklets and fbpanel and see where I go from there. :)
Somenoob
December 6th, 2006, 06:30 PM
Is it just me or is Open Box functioning improperly on Edgy? for example not being able to open ObConf and it crashes sometimes.
burek
December 8th, 2006, 11:40 AM
I dont reply exactly but do u know:
kwin-baghira - KDE theme for Apple junkies :)
burek
December 8th, 2006, 11:49 AM
On an unrelated note... Does anyone know of an Aqua/OS X like theme for Openbox?
I am looking too; what did you find the best one or closest one ?
patrick295767
December 9th, 2006, 08:45 AM
A very nice link about openbox:
http://doc.gwos.org/index.php/Openbox_GnomeStraight
Blindraven
October 4th, 2007, 07:13 AM
2. I do not use or recommend Fluxbox because I consider it slow and clunky.
That has got to be the most grosely profounded elitest statement I have seen on this, or any other linux forum to DATE.
Two thumbs WAY UP for effort on that one mate,
Whats next, using vi for machine-code? ahh **** it, just C++ your own TE and go for gold.
I bet you used wcm or lynx to make that post.
I'm speechless. (the thank god sentiment is used and tried, try - for allaah's kebabs sake, to be a little bit more original).
darkfox
October 4th, 2007, 08:06 AM
Ah well: choice. Freedom of thought and expression. Its where we derive our strength. You've got yours, he's got his. 'Nuff said?
Blindraven
October 4th, 2007, 09:08 AM
Ah well: choice. Freedom of thought and expression. Its where we derive our strength. You've got yours, he's got his. 'Nuff said?
Ye, but when I grew up I was taught that If I didn't have anything nice to say, to keep it to myself. Maybe thats just an Australian thing, but there is no fine line between the freedoms of expression and irrational bias recommendations, its obvious.
If his post was "I don't like flux box for X & Y reasons" I'd have said less, though still put forward my 4th amendment, however, it was also a little bit more prejudiced than that and I simply cant stand people that probably don't have the first idea about WM's scrutinizing against them for the sake of sounding elite or, in this profoundly whack case, comparing an ant to an equal sized flee and asserting that the ant is somehow "sluggish" in comparison to its equally speedy counter-part.
People read the "built from the gound up and bla bla" crap and immediately think its something godly - or that it somehow implicates "trueness", wherein fact the exact demographic of openbox is the elitest community, knowing that making a WM with absa.fukin.loutely.nothing to work with but a menu from the get-go would appeal to the "hard-core"
So sure, working of your proportionated statement about, funnily enough, opinions - theres mine own for you.
:KS:KS
MetalMusicAddict
October 4th, 2007, 10:08 AM
Ye, but when I grew up I was taught that If I didn't have anything nice to say, to keep it to myself.
Didnt you just do the same thing with your post? And you felt the need to respond in this way to a thread that hasnt had a post to it in almost a year? By a user who no longer comes to the forum?
Come on. I know you have better, more productive things to do. ;)
Blindraven
October 4th, 2007, 10:27 AM
Didnt you just do the same thing with your post? And you felt the need to respond in this way to a thread that hasnt had a post to it in almost a year? By a user who no longer comes to the forum?
Come on. I know you have better, more productive things to do. ;)
Ye, my fiances sister just kicked my *** in dead or alive.
Not happy.
darkfox
October 4th, 2007, 01:47 PM
Well I don't see the picture you paint. I'm not too technical, or elitist. I run Gnome on my reasonably fast desktop but OpenBox on my ancient laptop because Gnome or KDE are just too heavy for it. I don't know which 'box is better, in fact I suspect that their set of plusses and minuses largely overlap, but it is thanks to an excellent HowTo written by StormyEyes a couple of years ago that I was able to get any productivity out of the laptop. The point is that the Openbox community has always been courteous and helpful to me even though I'm no uber-geek, and I'm wondering what it is that you are frightened of here?
Blindraven
October 4th, 2007, 06:43 PM
Well I don't see the picture you paint. I'm not too technical, or elitist. I run Gnome on my reasonably fast desktop but OpenBox on my ancient laptop because Gnome or KDE are just too heavy for it. I don't know which 'box is better, in fact I suspect that their set of plusses and minuses largely overlap, but it is thanks to an excellent HowTo written by StormyEyes a couple of years ago that I was able to get any productivity out of the laptop. The point is that the Openbox community has always been courteous and helpful to me even though I'm no uber-geek, and I'm wondering what it is that you are frightened of here?
Where in any post on this forum have I put forward the notion that I was frightened?
This was a classic case of someone running down a WM, my saying "Is that really necessary" and someone else, (you), trying to subtly prove it is.
So again, its not.
And you are correct, all WM's have their +'s and _'s - but that is no reason to go around telling people "So and so is sluggish and horrible and I wildly refute any recommendation on its behalf" - because thats trolling, not posting.
Thanks.
Super Jamie
June 13th, 2008, 09:50 AM
Thanks to the OP for the Howto and intro to Openbox.
I can't believe I've been missing out on this amazingly light yet powerful window manager for so long!
Could someone give an example of how to get a pipe menu script running? Perhaps paste the code from one of your working scripts? I've read the Openbox FAQ but don't really understand where the script files need to go, or how I call them to produce the piped menu text.
urukrama
June 13th, 2008, 05:38 PM
This howto is quite outdated. Recent Openbox versions have a lot more features. For a more up to date and comprehensive guide, see the link in my signature.
You would put pipemenu scripts in your openbox configuration folder (~/.config/openbox/). Many pipe-menus tell you in the script itself (at the top of the file) how to use them (it differs from script to script).
dominiquec
June 24th, 2008, 11:43 AM
Just discovered the minimalist beauty of OpenBox and am running it on 8.04. One problem, though: can't seem to find any good documentation on getting sound to work. Installed ALSA and it recognizes my sound card, so that doesn't seem to be the problem. Couldn't make heads or tails of the PulseAudio stuff.
Any suggestions how I might get sound working?
alphane
June 24th, 2008, 12:01 PM
In terminal type: alsaconfig
Make sure that all audio levels are up and not muted (MM = mute) press "m" to unmute.
That was my problem on a recent Openbox install.
dominiquec
June 24th, 2008, 07:59 PM
Thanks, but I can't seem to find alsaconfig in any of the packages. As I understand, it was removed; am I correct?
Can you give me a list of all the packages that I need to install?
urukrama
June 25th, 2008, 06:44 AM
You need alsa-utils (http://packages.ubuntu.com/hardy/alsa-utils). Then unmute the audio channels through "alsamixer" (not alsaconfig) as described by alphane.
dominiquec
June 25th, 2008, 10:05 AM
Tried that, but no such luck, though.
alsa does recognize the card, as I can see it in the alsamixer output. Already unmuted and maxed out all the available controls but still no sound.
I suspect this has little to do with OpenBox, though. I tried the command line music123 but still no output.
Under a normal Ubuntu desktop installation, I do get sound; it's in the bare-bones command-line (+ OpenBox) that I'm not getting anything.
antofthy
April 13th, 2009, 09:44 PM
What do I have to do to get Openbox's menu when rightclicking on the desktop without ditching gnome? Is there some way of keeping the icons anyway?
Add a modifier to the binding so that it will not interfer with the normal menu of the 'root' display.
<mouse>
...
<!-- Gnome Desktop : Menus may not work -->
<context name="Desktop">
...
<mousebind button="W-Right" action="Press">
<action name="ShowMenu">
<!-- This is an OpenBox version of the Gnome Main Menu -->
<menu>root-menu</menu>
</action>
</mousebind>
...
</context>
...
</mouse>
Now pressing the right mouse button while holding the "SUPER" key will pop up the menu.
antofthy
April 13th, 2009, 09:49 PM
Try adding "sleep 10s" to your script. Put it right after the "gnome-settings-daemon &" call.
Is their some way of determining when gnome-settings-daemon has finished mucking around with the system It stuffs up my own X resources and other settings and I want to restore things correctly when it is finished!
antofthy
April 13th, 2009, 10:16 PM
Very Advanced Fun with Keybindings: Keyboard Macro Expansion.
EG: Press a function key and the WM expands it to a Email Address or URL
First install the 'xautomation' package so you can get the 'xte' command to programmically generate keyboard bindings.
Now add (or replace) some extra keybindings, modify to suit...
<keybind key="W-F1">
<action name="Execute">
<command>xte 'usleep 500000' \
'str A.Thyssen@griffith.edu.au'</command>
</action>
</keybind>
<keybind key="W-F2">
<action name="Execute">
<command>bash -c "xte 'usleep 500000' \\\
'str http://www.cit.gu.edu.au/'`printf '\176'`'anthony/'"
</command>
</action>
</keybind>
Now when you reconfigure openbond. Press Super-F1 and quickly release BOTH keys. A monent later the email address will be printed.
The beauty is that it will do this int ANY normal input, even horrible programs that do not understand normal copy-paste handling!
The Second defintion is a URL to my home page. the special '`printf '\176'`' syntax is to insert a '~' character into the command without OpenBox trying to expand it into my 'home directory' Arrrgghhhh...
For reasons why the 'usleep' is needed see my page on X Window Event handling...
http://www.cit.gu.edu.au/~anthony/info/X/Event_Handling.txt
ASIDE: I created that URL using that macro :-)
theZoid
September 10th, 2009, 08:53 PM
Instead of executing
openbox --replace
and saving your Gnome session afterwards, you can also put
export WINDOW_MANAGER="/usr/bin/openbox"
into your ~/.gnomerc
Next time you log into Gnome, openbox will be managing your windows.
Does anyone have an update for this with Jaunty gnome as this doesn't work anymore. thanks as I can't find the right file for this.
Cortux
October 7th, 2009, 11:02 AM
When I do the --replace, i get this:
(openbox:5174): Openbox-WARNING **: Openbox is configured for 4 desktops, but the current session has 1. Overriding the Openbox configuration.
Openbox-Message: Unable to find a valid menu file "/var/lib/openbox/debian-menu.xml"
Openbox-Message: Unable to find a valid menu file "debian-menu.xml"
Please help
Pirolocito
October 8th, 2009, 07:05 PM
Openbox is very nice, i'll recommend it!!!
http://linuxmadeasy.blogspot.com/2009/10/openbox-nice-and-lightweight-windows.html
kevinguillorytraining
October 9th, 2009, 04:58 AM
I am unable to open themes website. Is there any alternative website? I am using OpenDNS
johnnyhostile
December 13th, 2009, 10:40 AM
Does anyone have an update for this with Jaunty gnome as this doesn't work anymore. thanks as I can't find the right file for this.
Don't know if you still need this, but I achieved this by editing ~/.dmrc as follows:
[Desktop]
Session=openbox
jonobe
August 27th, 2010, 05:54 PM
When I do the --replace, i get this:
(openbox:5174): Openbox-WARNING **: Openbox is configured for 4 desktops, but the current session has 1. Overriding the Openbox configuration.
Openbox-Message: Unable to find a valid menu file "/var/lib/openbox/debian-menu.xml"
Openbox-Message: Unable to find a valid menu file "debian-menu.xml"
Please help
I've got exactly the same problem in Ubuntu 10.04.
Any ideas, any one?
urukrama
August 29th, 2010, 06:51 PM
I've got exactly the same problem in Ubuntu 10.04.
Any ideas, any one?
This is really nothing serious. It only means that Openbox is configured (in the ~/.config/openbox/rc.xml configuration file) to have four workspaces but that your current session is set up to only have one, so Openbox will only use one workspace. Openbox allows other programs to override these settings, and will work fine with everything else.
Generally this means that your pager plugin in your panel is configured to only have one workspace. If you want to use more workspaces, you will have to tell Gnome to use more workspaces.
This guide is very outdated, by the way. If you install Openbox from the repositories, you should be able to login to a Gnome/Openbox session at the login screen and not have to switch to Openbox in Gnome with the openbox --replace command.
politenessman
December 10th, 2010, 07:18 PM
Guess I am kind of late to this party - I've been playing with openbox and I like it a lot. I especially like the right click apps menu, but having gone though this process, I find myself with a working desktop (great!) which does seem to be using openbox, but my right click menu looks exactly the same as it was under gnome.
What do I need to do to get the openbox right click menu?
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.