source: x/wm/openbox.xml@ 7b0365f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 7b0365f was 7b0365f, checked in by Andrew Benton <andy@…>, 12 years ago

Openbox tweaks

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@10077 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 13.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY openbox-download-http
8 "http://openbox.org/dist/openbox/openbox-&openbox-version;.tar.gz">
9 <!ENTITY openbox-download-ftp " ">
10 <!ENTITY openbox-md5sum "00441b53cf14c03566c8e82643544ff9">
11 <!ENTITY openbox-size "9 MB">
12 <!ENTITY openbox-buildsize "18 MB">
13 <!ENTITY openbox-time "0.3 SBU">
14]>
15
16<sect1 id="openbox" xreflabel="openbox-&openbox-version;">
17 <?dbhtml filename="openbox.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>openbox-&openbox-version;</title>
25
26 <indexterm zone="openbox">
27 <primary sortas="a-openbox">Openbox</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to openbox</title>
32
33 <para>
34 <application>Openbox</application> is a highly configurable desktop
35 window manager with extensive standards support. It allows you to control
36 almost every aspect of how you interact with your desktop.
37 </para>
38
39 &lfs71_checked;
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>
45 Download (HTTP): <ulink url="&openbox-download-http;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>Download MD5 sum: &openbox-md5sum;
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download size: &openbox-size;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Estimated disk space required: &openbox-buildsize;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated build time: &openbox-time;
65 </para>
66 </listitem>
67 </itemizedlist>
68
69 <bridgehead renderas="sect3">Openbox Dependencies</bridgehead>
70
71 <bridgehead renderas="sect4">Required</bridgehead>
72 <para role="required">
73 <xref linkend="pkgconfig"/>,
74 <xref linkend="x-window-system"/> and
75 <xref linkend="pango"/> (compiled with support for libXft).
76 </para>
77
78 <bridgehead renderas="sect4">Optional</bridgehead>
79 <para role="optional">
80 <xref linkend="imlib2"/> (to enable icons in the right click menu).
81 </para>
82
83 <para condition="html" role="usernotes">
84 User Notes: <ulink url="&blfs-wiki;/openbox"/>
85 </para>
86 </sect2>
87
88 <sect2 role="installation">
89 <title>Installation of Openbox</title>
90
91 <para>
92 Install <application>Openbox</application> by running the following
93 commands:
94 </para>
95
96<screen><userinput>./configure -&#45;prefix=/usr -&#45;sysconfdir=/etc -&#45;disable-static \
97 -&#45;docdir=/usr/share/doc/openbox-&openbox-version; &amp;&amp;
98make</userinput></screen>
99
100 <para>
101 To test the results, issue: <command>make check</command>.
102 </para>
103
104 <para>
105 Now, as the <systemitem class="username">root</systemitem> user:
106 </para>
107
108<screen role="root"><userinput>make install</userinput></screen>
109 </sect2>
110
111 <sect2 role="commands">
112 <title>Command Explanations</title>
113
114 <para>
115 <option>-&#45;sysconfdir=/etc</option>: This option puts
116 <application>Openbox</application>'s configuration files in
117 /etc/xdg/openbox instead of /usr/etc/xdg/openbox.
118 </para>
119
120 <para>
121 <option>-&#45;disable-static</option>: This option stops it compiling
122 static versions of the libraries.
123 </para>
124
125 <para>
126 <option>-&#45;docdir=/usr/share/doc/openbox-&openbox-version;</option>:
127 this puts a few files in a versioned directory in
128 <filename class="directory">/usr/share/doc</filename>.
129 </para>
130 </sect2>
131
132 <sect2 role="configuration">
133 <title>Configuring Openbox</title>
134
135 <sect3 id="openbox-config">
136 <title>Config Files</title>
137
138 <para>
139 /etc/xdg/openbox/menu.xml, /etc/xdg/openbox/rc.xml,
140 ~/.config/openbox/menu.xml and ~/.config/openbox/rc.xml
141 </para>
142
143 <indexterm zone="openbox openbox-config">
144 <primary sortas="e-AA.menu">~/.config/openbox/menu.xml</primary>
145 </indexterm>
146
147 <indexterm zone="openbox openbox-config">
148 <primary sortas="e-AA.rc">~/.config/openbox/rc.xml</primary>
149 </indexterm>
150
151 <indexterm zone="openbox openbox-config">
152 <primary sortas="e-etc-path-menu">/etc/xdg/openbox/menu.xml</primary>
153 </indexterm>
154
155 <indexterm zone="openbox openbox-config">
156 <primary sortas="e-etc-path-rc">/etc/xdg/openbox/rc.xml</primary>
157 </indexterm>
158 </sect3>
159
160 <sect3><title>Configuration Information</title>
161
162 <para>
163 <application>Openbox</application>'s right click menu can be used to
164 launch programs. The menu itself is configured with 2 files,
165 <filename>/etc/xdg/openbox/menu.xml</filename> and
166 <filename>~/.config/openbox/menu.xml</filename>. To make changes to the
167 menu, copy /etc/xdg/openbox/menu.xml to ~/.config/openbox/menu.xml and
168 edit it:
169 </para>
170
171<screen role="user"><userinput>cp -rf /etc/xdg/openbox ~/.config</userinput></screen>
172 <para>
173
174 <filename>~/.config/openbox/menu.xml</filename> can be edited with a
175 text editor or you can install
176 <ulink url="http://obmenu.sourceforge.net/">Obmenu</ulink> (requires
177 <xref linkend="pyxml"/> and <xref linkend="pygtk"/>).
178 </para>
179
180 <para>
181 To have icons in your right click menu requires installing
182 <xref linkend="imlib2"/> before you install
183 <application>Openbox</application>. To set an icon for an entry in the
184 menu edit <filename>~/.config/openbox/menu.xml</filename> and add an
185 icon to the &lt;item&gt; tag like this:
186 </para>
187
188<screen>&lt;item label="Mplayer" icon="/usr/share/pixmaps/mplayer.png"&gt;</screen>
189
190 <para>
191 Many other aspects of <application>Openbox</application>'s behaviour are
192 configured with <filename>~/.config/openbox/rc.xml</filename> such as
193 what keybindings are used to launch programs or which mouse button
194 launches the main menu.
195 </para>
196
197 <para>
198 Details of the theme that <application>Openbox</application> applies to
199 window decorations are configured in
200 <filename>~/.config/openbox/rc.xml</filename>. You can get a list of the
201 available themes with the command:
202 </para>
203
204<screen role="user"><userinput>ls -d /usr/share/themes/*/openbox-3 | sed 's#.*es/##;s#/o.*##'</userinput></screen>
205 </sect3>
206
207 <sect3 id="openbox-init">
208 <title>Starting Openbox</title>
209
210 <para>
211 To automatically start <command>openbox</command> when you start
212 <application>Xorg</application>:
213 </para>
214
215<screen role="user"><userinput>echo openbox &gt; ~/.xinitrc</userinput></screen>
216
217 <para>
218 If you want to set a background image to your desktop you can use
219 <xref linkend="display"/> and launch it from ~/.xinitrc just before
220 openbox:
221 </para>
222
223<screen role="user"><userinput>cat &gt; ~/.xinitrc &lt;&lt; "HERE_DOC"
224display -backdrop -window root /path/to/beautiful/picture.jpeg
225exec openbox
226HERE_DOC</userinput></screen>
227
228 <para>
229 Or if you like a bit of variety, put a selection of images in a folder
230 and choose one at random each time you <command>xinit</command>:
231 </para>
232
233<screen role="user"><userinput>cat &gt; ~/.xinitrc &lt;&lt; "HERE_DOC"
234picture_list=(~/.config/backgrounds/*)
235random_number=$(( ${RANDOM} % ${#picture_list[*]} ))
236display -backdrop -window root "${picture_list[$random_number]}"
237exec openbox
238HERE_DOC</userinput></screen>
239
240 <para>
241 If you like to have the numlock key set whan you start Xorg, install
242 <ulink url="http://home.kde.org/~seli/numlockx/">Numlockx</ulink> and
243 add that to your xinitrc. Another useful application is
244 <xref linkend="dbus"/>
245 </para>
246
247<screen role="user"><userinput>cat &gt; ~/.xinitrc &lt;&lt; "HERE_DOC"
248. /etc/profile
249picture_list=(~/.config/backgrounds/*)
250random_number=$(( ${RANDOM} % ${#picture_list[*]} ))
251display -backdrop -window root "${picture_list[$random_number]}"
252numlockx
253eval $(dbus-launch --auto-syntax --exit-with-session)
254lxpanel &amp;
255exec openbox
256HERE_DOC</userinput></screen>
257 </sect3>
258 </sect2>
259
260 <sect2 role="content">
261 <title>Contents</title>
262
263 <segmentedlist>
264 <segtitle>Installed Programs</segtitle>
265 <segtitle>Installed Libraries</segtitle>
266 <segtitle>Installed Directories</segtitle>
267
268 <seglistitem>
269 <seg>
270 gdm-control, gnome-panel-control, obxprop, openbox,
271 openbox-gnome-session, openbox-kde-session and openbox-session
272 </seg>
273 <seg>
274 libobrender.so and libobt.so
275 </seg>
276 <seg>
277 /etc/xdg/openbox, /usr/include/openbox,
278 /usr/share/doc/openbox-&openbox-version; and /usr/share/themes.
279 </seg>
280 </seglistitem>
281 </segmentedlist>
282
283 <variablelist>
284 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
285 <?dbfo list-presentation="list"?>
286 <?dbhtml list-presentation="table"?>
287
288 <varlistentry id="gdm-control">
289 <term><command>gdm-control</command></term>
290 <listitem>
291 <para>
292 is a command line tool to send signals to
293 <application>GDM</application>.
294 </para>
295 <indexterm zone="openbox gdm-control">
296 <primary sortas="b-gdm-control">gdm-control</primary>
297 </indexterm>
298 </listitem>
299 </varlistentry>
300
301 <varlistentry id="gnome-panel-control">
302 <term><command>gnome-panel-control</command></term>
303 <listitem>
304 <para>
305 is a command line utility to invoke the <application>Gnome
306 Panel</application> run dialog/menu.
307 </para>
308 <indexterm zone="openbox gnome-panel-control">
309 <primary
310 sortas="b-gnome-panel-control">gnome-panel-control</primary>
311 </indexterm>
312 </listitem>
313 </varlistentry>
314
315 <varlistentry id="obxprop">
316 <term><command>obxprop</command></term>
317 <listitem>
318 <para>
319 is a tool for displaying the properties on an x window. It has a
320 similar functionality to <command>xprop</command>, but allows you to
321 see UTF-8 strings as text.
322 </para>
323 <indexterm zone="openbox obxprop">
324 <primary sortas="b-obxprop">obxprop</primary>
325 </indexterm>
326 </listitem>
327 </varlistentry>
328
329 <varlistentry id="openbox-prog">
330 <term><command>openbox</command></term>
331 <listitem>
332 <para>
333 is a standards compliant, highly configurable, window manager.
334 </para>
335 <indexterm zone="openbox openbox">
336 <primary sortas="b-openbox">openbox</primary>
337 </indexterm>
338 </listitem>
339 </varlistentry>
340
341 <varlistentry id="openbox-gnome-session">
342 <term><command>openbox-gnome-session</command></term>
343 <listitem>
344 <para>
345 is a script to launch an <application>Gnome</application> session
346 with openbox as your window manager from your
347 <filename>~/.xinitrc</filename>.
348 </para>
349 <indexterm zone="openbox openbox-gnome-session">
350 <primary
351 sortas="b-openbox-gnome-session">openbox-gnome-session</primary>
352 </indexterm>
353 </listitem>
354 </varlistentry>
355
356 <varlistentry id="openbox-kde-session">
357 <term><command>openbox-kde-session</command></term>
358 <listitem>
359 <para>
360 is a script to launch an <application>KDE</application> session with
361 <application>Openbox</application> as your window manager from your
362 <filename>~/.xinitrc</filename>.
363 </para>
364 <indexterm zone="openbox openbox-kde-session">
365 <primary
366 sortas="b-openbox-kde-session">openbox-kde-session</primary>
367 </indexterm>
368 </listitem>
369 </varlistentry>
370
371 <varlistentry id="openbox-session">
372 <term><command>openbox-session</command></term>
373 <listitem>
374 <para>
375 is a script to launch an <application>Openbox</application> session
376 from your <filename>~/.xinitrc</filename>.
377 </para>
378 <indexterm zone="openbox openbox-session">
379 <primary sortas="b-openbox-session">openbox-session</primary>
380 </indexterm>
381 </listitem>
382 </varlistentry>
383
384 <varlistentry id="libobrender">
385 <term><filename class="libraryfile">libobrender.so</filename></term>
386 <listitem>
387 <para>
388 contains the functions used by <application>Openbox</application>
389 for theme rendering.
390 </para>
391 <indexterm zone="openbox libobrender">
392 <primary sortas="c-libobrender">libobrender.so</primary>
393 </indexterm>
394 </listitem>
395 </varlistentry>
396
397 <varlistentry id="libobt">
398 <term><filename class="libraryfile">libobt.so</filename></term>
399 <listitem>
400 <para>
401 is the <application>Openbox</application> toolkit library.
402 </para>
403 <indexterm zone="openbox libobt">
404 <primary sortas="c-libobt">libobt.so</primary>
405 </indexterm>
406 </listitem>
407 </varlistentry>
408 </variablelist>
409 </sect2>
410</sect1>
Note: See TracBrowser for help on using the repository browser.