Changeset 7b0365f for x/wm/openbox.xml


Ignore:
Timestamp:
05/04/2012 03:37:21 PM (12 years ago)
Author:
Andrew Benton <andy@…>
Branches:
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
Children:
ff43ebb
Parents:
9166fa4
Message:

Openbox tweaks

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • x/wm/openbox.xml

    r9166fa4 r7b0365f  
    137137
    138138      <para>
    139         In ~/.config/openbox and /etc/xdg/openbox, <filename>menu.xml</filename>
    140         and <filename>rc.xml</filename>
     139        /etc/xdg/openbox/menu.xml, /etc/xdg/openbox/rc.xml,
     140        ~/.config/openbox/menu.xml and ~/.config/openbox/rc.xml
    141141      </para>
    142142
     
    161161
    162162      <para>
    163         <application>Openbox</application>'s right click menu is used to launch
    164         programs. The menu itself is configured with 2 files,
     163        <application>Openbox</application>'s right click menu can be used to
     164        launch programs. The menu itself is configured with 2 files,
    165165        <filename>/etc/xdg/openbox/menu.xml</filename> and
    166         <filename>~/.config/openbox/menu.xml</filename>. If
    167         <filename>~/.config/openbox/menu.xml</filename> doesn't exist then
    168         <application>Openbox</application> will copy
    169         <filename>/etc/xdg/openbox/menu.xml</filename> to
    170         <filename>~/.config/openbox/menu.xml</filename> when it is launched.
    171       </para>
    172 
    173       <para>
     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
    174174        <filename>~/.config/openbox/menu.xml</filename> can be edited with a
    175175        text editor or you can install
     
    186186      </para>
    187187
    188 <screen role="user"><userinput>&lt;item label="Mplayer" icon="/usr/share/pixmaps/mplayer.png"&gt;</userinput></screen>
     188<screen>&lt;item label="Mplayer" icon="/usr/share/pixmaps/mplayer.png"&gt;</screen>
    189189
    190190      <para>
     
    216216
    217217      <para>
    218         Alternatively, use the <command>openbox-session</command> script to
    219         launch <command>openbox</command>. It runs another script,
    220         <filename>~/.config/openbox/autostart</filename> and if that doesn't
    221         exist it runs <filename>/etc/xdg/openbox/autostart</filename>. You can
    222         create <filename>~/.config/openbox/autostart</filename> and edit it to
    223         start any other programs you want running during your
    224         <application>Openbox</application> session (eg, a panel or Dbus).
    225       </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>
    226257    </sect3>
    227258  </sect2>
Note: See TracChangeset for help on using the changeset viewer.