On Tue, 2005-02-15 at 22:00, Mikko Heiskanen wrote:
> #!/bin/sh
>
> category=""
>
> for line in $(pkg_info -a -o -q|sort); do
> curcat=$(echo $line | awk -F '/' '{ print $1 }')
> app=$(echo $line | awk -F '/' '{ print $2 }')
>
> if [ "$curcat" != "$category" ]; then
> echo "AddToMenu deinstallmenu"
> echo "+ %some.icon%\"$curcat\" Popup $curcat"
> echo "AddToMenu $curcat"
> category=$curcat
> fi
> if [ -n "$app" ]; then
> echo "+ %some.icon%\"$app\" Exec $app"
> fi
> done
Nevermind, the above script is working as it should; I was missing an
'I' from my config, hence menus multiplying every run. One glitch still
remains with the above; after generation, the menu isn't popped up
automatically; one needs to move the cursor for menu to popup.
Mikko
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Tue Feb 15 2005 - 15:12:25 GMT