Re: [dwm] dmenu-input

From: Antoni Grzymala <antoni_AT_chopin.edu.pl>
Date: Thu, 5 Oct 2006 13:08:36 +0200

Tako rzecze Rob Manea (w liƛcie z 2006-10-05, 10:18):

> The programm simply scans $PATH, extracts all files executable for the
> user running the programm and outputs those files to stdout.
>
> Usage:
> dmenu-input | dmenu
>
> If you want it sorted:
>
> dmenu-input | sort -u | dmenu
>
>
> The small source file is attached to this message, just in case anyone
> may find it useful.

Looks useful. Did you try measuring how much faster (on a dry run) it is
than running any shell oneliner (like the one provided by arg or any
other one)?

You could also consider adding | uniq | to the pipe. Cuts the number of
entries by about 200 on my computer. But then -- might slow it down even
further. May not be worth it.

Cheers,

[a]

-- 
. Antoni Grzymala - antoni (at) chopin.edu.pl -------------------.
| OpenPGP KeyID EB315583 available now from a keyserver near you |
| Fingerprint A819 6D2E D5EB D9E0 D2D9  7AF6 2FAF 4A11 EB31 5583 |
`----------------------------------------------------------------'
Received on Thu Oct 05 2006 - 13:08:42 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:31:50 UTC