Changeset 5b9edb4 for x


Ignore:
Timestamp:
05/05/2012 01:47:13 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:
8e2c769
Parents:
96251d4b
Message:

Libreoffice 3.5.3.2

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • x/wm/openbox.xml

    r96251d4b r5b9edb4  
    228228      <para>
    229229        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>:
     230        (in this example, the directory ~/.config/backgrounds) and choose one at
     231        random each time you <command>xinit</command>:
    231232      </para>
    232233
    233234<screen role="user"><userinput>cat &gt; ~/.xinitrc &lt;&lt; "HERE_DOC"
     235# make an array which lists the pictures:
    234236picture_list=(~/.config/backgrounds/*)
    235 random_number=$(( ${RANDOM} % ${#picture_list[*]} ))
    236 display -backdrop -window root "${picture_list[$random_number]}"
     237# create a random integer between 0 and the number of pictures:
     238random_number=$(( ${RANDOM} % ${#picture_list[@]} ))
     239# display the chosen picture:
     240display -backdrop -window root "${picture_list[${random_number}]}"
    237241exec openbox
    238242HERE_DOC</userinput></screen>
     
    249253picture_list=(~/.config/backgrounds/*)
    250254random_number=$(( ${RANDOM} % ${#picture_list[*]} ))
    251 display -backdrop -window root "${picture_list[$random_number]}"
     255display -backdrop -window root "${picture_list[${random_number}]}"
    252256numlockx
    253257eval $(dbus-launch --auto-syntax --exit-with-session)
Note: See TracChangeset for help on using the changeset viewer.