Openbox Themes and Apps

From ArchWiki
Revision as of 11:19, 14 August 2012 by Alexfikl (talk | contribs) (Recommended programs: added a link to the list of apps in the openbox wiki)
Jump to navigation Jump to search

zh-CN:Openbox Themes and Apps

Note: This article is a supplement to the main Openbox article.

This wiki article deals with customizing the appearance of Openbox in Arch Linux. Helper programs such as panels and trays are also explained.

Themes and appearance

With the exception of the Openbox Themes topic, the following section is intended for users who have configured Openbox to run as a standalone desktop, without the assistance of GNOME, KDE or Xfce.

Openbox themes

Openbox themes control the appearance of window borders, including the titlebar and titlebar buttons. They also determine the appearance of the application menu and on-screen display (OSD).

Some themes are available for installation with the openbox-themes package in the official repositories.

This package is by no means definitive. You can download more themes at websites such as:

Downloaded themes should be extracted to ~/.themes or ~/.local/share/themes and selected from obconf or lxappearance-obconf. Theme selection can also be done manually by opening rc.xml and changing the <name> key in the <theme> section.

Creating new themes is fairly easy and well-documented. For those who prefer a GUI, obthemeAUR is a very capable editor.

X11 appearance

Main article: Xdefaults

If you are running Openbox as a standalone, you will need to configure the .Xdefaults file. Save a copy to ~/.Xdefaults and /root/.Xdefaults (for windows opened as root).

Xdefaults is a user-level configuration dotfile, typically located at ~/.Xdefaults. When present, it is parsed by the xrdb (Xorg resource database) program automatically when Xorg is started, and can be used to set or override preferences for X and X applications. It can do many operations, including:

  • defining terminal colours,
  • configuring terminal preferences,
  • setting DPI, antialiasing, hinting and other X font settings,
  • changing the Xcursor theme,
  • theming Xscreensaver and
  • altering preferences on low-level X applications (xclock, xpdf, etc.)

X11 mouse cursors

Extract the desired Xcursor theme to either /usr/share/icons (system-wide access) or ~/.icons (local user access). There are also a limited amount of themes available in the [community] repository that can be installed using Pacman.

Add this to ~/.Xresources:

Xcursor.theme:   [name-of-cursor-theme]

where [name-of-cursor-theme] is the name of the cursor theme directory. For example:

Xcursor.theme:	Vanilla-DMZ-AA

To change the size:

Xcursor.size: [size]

Sometimes it is required to symlink the icon directory into each user directory to make the window manager use them:

$ mkdir ~/.icons
$ ln -s /usr/share/icons/[name-of-cursor-theme] ~/.icons/default

For more information read the Arch Wiki: X11_Cursors

GTK themes


First, extract the desired theme to /usr/share/themes (system-wide access) or ~/.themes (local user access), then:

GTK themes can be managed easily with the lxappearance (part of the LXDE Desktop), gtk-chtheme, or gtk-theme-switch2 utilities.

If you have the gnome-settings-daemon running, it can keep you from changing the GTK theme by reverting back to original theme. By default, the autostart file provided by Openbox runs it, so make sure that you do not have it running if you wish to properly use GTK themes.


For legacy GTK1 themes, install the gtk-theme-switchAUR package and run switch to select a desired theme.

GTK fonts

To manually change the type and size of your fonts, add the following to ~/.gtkrc.mine:

style "user-font"
font_name = "[font-name] [size]"
widget_class "*" style "user-font"
gtk-font-name = "[font-name] [size]"

where [font-name] [size] is the desired font and point size. For example:

style "user-font"
font_name = "DejaVu Sans 8"
widget_class "*" style "user-font"
gtk-font-name = "DejaVu Sans 8"

Both font_name and gtk-font-name fields are required for backwards compatibility.

You can also use gtk-chtheme or lxappearance to set GTK font settings.

GTK icons

First, extract the desired icon theme to /usr/share/icons (system-wide access) or ~/.icons (local user access), then:

Add the following to ~/.gtkrc.mine:

gtk-icon-theme-name = "[name-of-icon-theme]"

where [name-of-icon-theme] is the name of the icon theme directory. For example:

gtk-icon-theme-name = "Tango"

Ensure ~/.gtkrc-2.0 is configured to parse ~/.gtkrc.mine:

# ~/.gtkrc-2.0
include "/usr/share/themes/Rezlooks-Gilouche/gtk-2.0/gtkrc"
include "/home/username/.gtkrc.mine"

You can use lxappearance to choose GTK icon themes. Alternatively, use the development versions lxappearance-gitAUR ot lxappearance2-gitAUR and lxappearance-obconf-gitAUR for the latest features.

Desktop icons

Openbox does not provide a means to display icons on the desktop. To provide this function, one can use: || xfdesktop
  • PCManFM — An extremely fast and lightweight file manager used by the LXDE desktop. || pcmanfm
  • ROX — A small and fast file manager which can optionally manage the desktop background and panels, part of the ROX Desktop. || rox
  • IDesk — A simple tool that gives users of minimal wm's (Fluxbox, pekwm, Window Maker, Obenbox, etc) icons on their desktop. || idesk
  • Nautilus — The file manager of the GNOME desktop. || nautilus

Desktop wallpaper

Openbox itself does not include a way to change the wallpaper. This can be done easily with programs like Feh or Nitrogen. Other options include imagemagick, hsetroot, xsetbg and more advanced choices such as PCmanFM or Xfdesktop.

You can disable the wallpaper loading in gnome-settings-daemon like this:

$ gconftool-2 --set /apps/gnome_settings_daemon/plugins/background/active --type bool False

In Gnome 3 use:

$ gsettings set org.gnome.desktop.background draw-background false

One approach, using hsetroot is possible by placing the following command in autostart:

hsetroot -fill /path/to/image.file

A similar command for feh is:

feh --bg-scale /path/to/image.file

Recommended programs

Note: The main Openbox article has information on installing Openbox, but this supplemental section details specific lightweight applications you may want to deploy after installing Openbox.

For a more complete choice of applications available on Arch, look at the list of common applications. You can also look at the list recommended on the official Openbox website, although most overlap with the following suggestions.

Display managers


  • SLiM (Simple Login Manager) — A lightweight and elegant graphical login solution. || slim
  • Qingy — An ultralight and very configurable graphical login independent on X Windows (uses DirectFB). It supports login to either a text console or an X session. || qingy

Desktop compositing

  • Xcompmgr — A lightweight composite manager capable of rendering drop shadows, fading and simple window transparency within Openbox and other window managers. || xcompmgr
Note: Xcompmgr is no longer developed, so any issues are unlikely to be fixed. Various forks are available in the AUR that fix some of the more pressing problems: xcompmgr-danaAUR, xcompmgr_tint2-gitAUR (provides real transparency for Tint2) and compton-gitAUR (some shadows and transparency fixes). || cairo-compmgr-gitAUR

Desktop utilities

A number of utilities provide panels / taskbars, system trays, or pagers to Openbox:


Template:Box || avant-window-navigator-bzrAUR
  • Bmpanel — A lightweight, NETWM compliant panel for the X11 system. || bmpanelAUR
  • Cairo-Dock — A highly customizable dock/laucher. || cairo-dockAUR
  • Docker — A docking application which acts as a system tray. || docker
  • fbpanel — A lightweight, NETWM compliant desktop panel. || fbpanel
  • LXPanel — A lightweight X11 desktop panel and part of the LXDE DE. || lxpanel
  • Pancake — A highly configurable, modular panel for X. || pancakeAUR
  • Tint2 — Simple panel/taskbar developed specifically for Openbox. || tint2
  • wbar — A quick launch bar developed with speed in mind. || wbar || gnome-panel
  • PerlPanel — A lightweight panel that supports applets. || perlpanel
  • PyPanel — A lightweight panel/taskbar for X11 window managers written in Python. || pypanel
  • Screenlets — A widget framework that consists of small owner-drawn applications (weather widget, clocks, system monitors, mail checkers, etc.). || screenlets || xfce4-panel


  • Stalonetray — A stand-alone system tray with minimal dependecies. || stalonetray
  • Trayer — A lightweight GTK2-based systray. || trayer


  • IPager — A configurable pager with transparency, originally developed for Fluxbox. || ipagerAUR
  • Neap — An non-intrusive and light pager that runs in the notification area of your panel. || neap
  • Netwmpager — A NetWM/EWMH compatible pager. || netwmpager
  • Pager — A highly configurable pager compatible with Openbox Multihead. || pager-multihead-git

If you wish to set desktop layout without using a pager, try the obsetlayoutAUR package from AUR.

File managers


Two popular lightweight file managers are:

  • PCManFM — An extremely fast and lightweight file manager used by the LXDE desktop. || pcmanfm
  • ROX — A small and fast file manager which can optionally manage the desktop background and panels, part of the ROX Desktop. || rox
  • Thunar — The file manager of the Xfce Desktop with many plugins and features. || thunar

For even lighter options, consider:

  • Gentoo — A lightweight file manager for GTK. || gentooAUR
  • emelFM2 — A file manager that implements the popular two-pane design. || emelfm2
  • Xfe — An Microsoft Explorer-like file manager for X (X File Explorer). || xfe
  • muCommander — A lightweight, cross-platform file manager with a dual-pane interface written in Java. || mucommanderAUR

Alternatively, you may use GNOME's Nautilus as your file manager. It is heavier and slower than the previous solutions, but Nautilus has many helpful features such as virtual file systems, allowing folder access via SSH, FTP, or Samba.

Application launchers


  • gmrun — A lightweight GTK based application launcher, with ability to run programs inside a terminal and other handy features. To enable Template:Keypress functionality add the following to the <keyboard> section:
<keybind key="A-F2">
    <action name="execute"><execute>gmrun</execute></action>
</keybind> || gmrun
  • dmenu — A fast and lightweight dynamic menu for X, which is also useful as an application launcher. To enable Template:Keypress functionality add the following to the <keyboard> section:
<keybind key="A-F2">
    <action name="execute"><execute>dmenu_run</execute></action>
</keybind> || dmenu
  • Bashrun2 — Provides a different, barebones approach to a run dialog, using a specialized Bash session within a small xterm window. To enable Template:Keypress functionality add the following to the <keyboard> section:
<keybind key="A-F2">
    <action name="execute"><execute>bashrun2</execute></action>

To make Bashrun2 act more like a traditional run dialog add the following to the <applications> section:

<application name="bashrun2-run-dialog">
    <decor>no</decor>  # switch to yes if you prefer a bordered window
</application> || bashrun2AUR
  • Kupfer — A launcher inspired by Quicksilver, written in Python. To enable Template:Keypress functionality add the following to the <keyboard> section:
<keybind key="A-F2">
    <action name="execute"><execute>kupfer</execute></action>
</keybind> || kupferAUR
  • Launchy — A less minimalistic approach; it is skinnable and offers more functionality such as a calculator, checking the weather, etc. It is launched with the Template:Keypress key combination. || launchy
  • LXPanel — A lightweight X11 desktop panel and part of the LXDE DE. The run dialog can be executed with:
$ lxpanelctl run || lxpanel
  • GNOME Panel — The default Gnome panel. The run dialog of the GNOME Panel can be executed with:
$ gnome-panel-control --run-dialog || gnome-panel

Clipboard managers

You may wish to install a clipboard manager for a richer copy/paste experience.

xfce4-clipman-plugin, parcellite, or glipper-old can be installed via pacman. Add the clipboard manager to your  autostart.

Volume managers

Gvolwheel, gvtray

Gvolwheel is an audio mixer which lets you control the volume through a tray icon. gvolwheel at AUR.

Gvtray is a master volume mixer for the system tray. gvtray at AUR.

Obmixer, PNMixer

Obmixer is an applet written in C. It intends to be a lighter alternative to Gnome's volume control. obmixer at AUR. Obmixer is no longer maintained.

PNMixer is a fork of Obmixer with a number of additions. PNMixer at AUR.


Volti is a GTK+ application for controlling audio volume from the system tray/ notification area. volti at AUR.

Volumeicon, volwheel

Volumeicon is a volume control for the system tray. volumeicon at AUR.

Volwheel is a tray icon which changes volume via mouse wheel. volwheel at AUR.

Battery & CPU


Trayfreq is a light battery monitor and a cpu frequency scaler.

Keyboard layout switchers

Fbxkb, xxkb, axkb

Keyboard indicator and switcher fbxkb at AUR.

Keyboard layout switcher/ layout indicator xxkb at AUR.

QT4 keyboard layout switcher axkb at AUR.


X neural switcher is a text analyzer. It detects the language of input and corrects it if needed. aneur at AUR.

Logout dialog

exitx and exitx-polkit are available in AUR as logout dialogs which use sudo and PolicyKit, respectively.

obshutdownAUR is great openbox shutdown manager.

Alternatively, you can also use openbox's menus to create a simple dialog. Which can also be binded to a key for easy access.

An example with exit-menu as the id and Exit as the label(using PolicyKit/Dbus):

<menu id="exit-menu" label="Exit">
	<item label="Log Out">
		<action name="Execute">
			<command>openbox --exit</command>
	<item label="Shutdown">
		<action name="Execute">
			<command>dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop</command>
	<item label="Restart">
		<action name="Execute">
			<command>dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart</command>
	<item label="Suspend">
		<action name="Execute">
		<command>dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend</command>
	<item label="Hibernate">
		<action name="Execute">
		<command>dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Hibernate</command>

Add this to your menu.xml, then later in your menu or pipemenu of choice call:

<menu id="exit-menu"/>

If you would like to bind this to a key, simply add this example keybind to the keyboard section your rc.xml:

<keybind key="XF86PowerOff">
  <action name="ShowMenu">

This will bind it to your power button, if you prefer otherwise change XF86PowerOff to your preferred key.