Sorry about the lack of updates everyone. I've made a few small changes to the script, updated the first post with details and fixed the download links. As always, comments and extra fixes are welcome.

The perl script is nice. It's pretty much how I've been planning to implement a tree view, and now that I have time again I'll have a go at something similar. Not because I want to displace the current default, just because there are a few tweaks I'd like to make, and it's easier for me to do in python than perl.

Thanks for the responses everyone. I've made two small changes to the script, and updated the first post to include new download links and a quick guide (courtesy of omns and greenmanspirit) to using this in your openbox menu.

Sub-sub directories would be nice. So would pattern matching for ignored items. I'll see what I can think up, and if anyone else can think of a good way to do it then hack away.

This script generates a menu similar to #!'s default Places menu but it isn't static, so there's no need to update it all the time if you rearrange your home directory structure a lot. By default it displays any directory in ~/ or /media

To use the menu save the script somewhere, let's say ~/.config/openbox/places.py and then make it executable ("chmod a+x ~/.config/openbox/places.py" in a terminal). Then add a line like this to your openbox menu.xml file:        

<menu execute="~/.config/openbox/places.py" id="dynamic_places" label="Places"/>

If you'd like the script to be useable system wide, then save it somewhere like /usr/bin instead of ~/.config/openbox and change the paths used in my examples to match. Thanks greenmanspirit and omns for this explanation, hope you don't mind me using it here where it's easy to find.

Look here for more information on pipe menus: http://icculus.org/openbox/index.php/He … Pipe_menus

Important variables if you want to customise the generated menu:
manager - File manager which you want to use (nautilus, thunar, pcmanfm, rox-filer, konqueror, dolphin, etc).
dirs - The script lists and displays the subdirectories of these directories
ignore - Any item exactly matching an entry in this list will not be displayed
items - If you want to add a single directory entry to the menu you can do it here

Any suggestions on how to improve this would be appreciated.


Update:

* Removed trailing / characters from menu entries as suggested by Foomandoonian.

* The expanduser() function is now only called once, so that if you want to you can hardcode your home dir in its place and remove the "from os.path import expanduser" line. Doing this will make the script less portable, but should make it a tiny bit faster.

* The ignore list now accepts wildcards for pattern matching.
    * - Matches everything
    ? - Matches any single character
    [seq] - Matches any character in seq
    [!seq] - Matches any character not in seq

* Added a variable for file manager, makes it easier to change if you don't use Thunar. Thanks for the idea kestrel.

* List of directories is now alphabetical. Thanks kestrel, can't believe I didn't think of this. It's currently set to preserve the order of directories you set in the dirs variable. Read the script comments if you want to change this.

Thanks for putting this in the pastebin corenominal. I'll try and keep these links current.

View the script here
The direct download link is: http://crunchbanglinux.org/pastebin/?dl=195

4

(2 replies, posted in Introductions)

Hi everyone.

I found #! a few days ago, when one of your forum posts popped up in a google search (I was looking for way to get dropbox running without nautilus). I've been looking for a distro to try on my AA1, and was trying to choose between Arch and Xubuntu, but decided to give this a try instead.

Well it was a great decision! I've never used a *box WM before, and I've really enjoyed tweaking the configs and getting things set up the way I want them.

Here's a screen shot of what I've got so far: http://dl.getdropbox.com/u/361572/crunchbang.png. The wallpaper is from vladstudio, I've replaced the default panel with trayer and tint2 and I've taken a few ideas from the forum's conky setup thread.

Thanks for a great distro guys, I've been really impressed so far.