注意:

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Package:Openbox

From Funtoo
Jump to navigation Jump to search

Openbox

   Tip

We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

Openbox is a highly configurable, next generation window manager with extensive standards support.

Installation

root # emerge --ask x11-wm/openbox

Configuration

user $ mkdir -p ~/.config/openbox
user $ cp /etc/xdg/openbox/* ~/.config/openbox/

Starting

   ~/.xinitrc
exec openbox-session



Configuration files

Openbox's configuration files are well commented. Please read the files and edit them.

menu.xml
Openbox doesn't have panels natively. Openbox's menu is opened by a right click as default. You can customize this menu by editing ~/.config/openbox/menu.xml.
rc.xml
You can customize Openbox's key-bindings and mouse-bindings by editing ~/.config/openbox/rc.xml.
autostart
Openbox starts commands written in ~/.config/openbox/autostart.
   Note

Because Openbox is XDG (freedesktop.org) compliant, it also supports /etc/xdg/autostart/*.desktop and ~/.config/autostart/*.desktop. You can avoid running the command twice to add "NotShowIn=OPENBOX;" in the desktop file (case sensitive). More Information is avalable at http://standards.freedesktop.org/autostart-spec/autostart-spec-latest.html

environment
You can set environment variables by editing ~/.config/openbox/environment.

Customizing Tools

x11-misc/obconf
GTK+-based configuration frontend
x11-misc/obmenu
a frontend to edit menu.xml
x11-misc/obmenu-generator
x11-misc/openbox-menu

Dock apps

Openbox is compatible with Window Maker's dock applications such as x11-misc/stalonetray, x11-plugins/wmclock, etc. (Window Maker is a window manager.) You can install them and add them to the autostart file.

Panel

Openbox doesn't have any native panel. But you can add panels such as x11-misc/tint2.

External resources

Openbox
http://openbox.org/wiki/Main_Page
ArchWiki
https://wiki.archlinux.org/index.php/Openbox
Gentoo Wiki
https://wiki.gentoo.org/wiki/Openbox