Openbox-based desktop

Table of Contents

Configuration
Config files

Configuration

by ross at 13:30:08 on July 4, 2012

Install

# cd /usr/ports/x11-wm/openbox
# make install clean

# cd /usr/ports/x11-wm/obconf
# make install clean

# cd /usr/ports/x11-wm/obmenu
# make install clean

# cd /usr/ports/x11-wm/xcompmgr
# make install clean

# cd /usr/ports/graphics/hsetroot
# make install clean

# cd /usr/ports/devel/py-xdg
# make install clean

# cd /usr/ports/x11/lxpanel
# make install clean


lxpanel is optional. You can install any panel/dock, like deskutils/cairo-dock.

Edit ~/.xinitrc:

export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"

exec openbox-session

As regular user:

> mkdir -p ~/.config/openbox
> cp /usr/local/etc/xdg/openbox/* ~/.config/openbox/
> chmod u+w ~/.config/openbox/*

Add to the end of ~/.config/openbox/autostart:

# Use hsetroot to set the wallpaper
hsetroot -center /share/wallpapers/space-1680x1050.jpg
# Add -C flag to xcompmgr if you do not want tray and dock shadows
xcompmgr -cfF -r7 -o1 -l-10 -t-10 -D5 &

lxpanel &

You can use obconf and obmenu to configure the openbox. But better way is to edit the config files. Next section shows some examples.

This is basic setup of openbox with lxpanel (right click to customize), run startx to start X session or install a display manager like x11/slim for graphical login.

 

Comments
This web site is so awesome, I have lot of freebsd desktop environment problem find the solution on here. Thanks.

I have a simple project to build custom desktop environment called ArkBSD (Awesome Rapid Kit base on freebsd) in https://github.com/DachiChang/arkports-9.1. It's a set of meta-ports collection. If you get inserting on it, we can contact each other.

mail: [email protected]
-- Dachi Chang
Wednesday, April 3, 2013, 2:49:44