announce: ob3_wall, wallpaper selection pipe-menu app

Mike logan at dct.com
Sun Oct 19 17:16:35 EDT 2003


Heyas,

ob3_wall is an openbox3 pipe-menu app for wallpaper selection.

http://www.gozer.org/my_stuff/c/c/ob3_wall.c

Usage:
  ~/.config/openbox/menu.xml:
    <menu id="ob3_wall" label="Wallpaper" execute="ob3_wall" />

Configuration:
  ~/.config/openbox/.ob3_wall/rc
    command = qiv -z %s
    dir = /usr/share/wallpapers
    dir = /usr/local/share/wallpapers
    dir = ~/.local/share/wallpapers
    dir = ~/lib/backgrounds
    dir = ~/lib/wallpapers

The configured dirs are scanned and all of the files found are displayed in the menu. I thought about checking for some common image extentions, but figured most/all of the files in those dirs will just be images anyway.

qiv (http://www.klografx.net/qiv/) is used by default, but xloadimage or anything else could be used instead.

When a wallpaper is selected via the menu, a symlink (~/.config/openbox/wall) is created. If 'ob3_wall -' is called (say in ~/.xinitrc), it reads that symlink and sets the previously selected wallpaper.

Mike



More information about the openbox mailing list