Re: FVWM: Display contents of an array in a menu

From: Dominik Vogt <fvwm_at_fvwm.org>
Date: Mon, 15 Mar 2004 14:03:31 +0100

On Sat, Mar 06, 2004 at 07:39:12AM +0000, Ukpong Ukpong wrote:
> hi all
> I am using a shell scripts to create a string in a given format
> then want the contents of that string (array) to be displayed in the menu
>
>
> +DesktopNumber DesktopName+
> + 0 Mail +
> ++++++++++++++++++++++++++++
> I have a few ideas but can't figure out how to make PipeRead use the
> contents of the array.....

The easiest way is to make a shell script and call that, e.g.

  ------------------ my_script.sh -----------------
  echo "AddToMenu foo"
  echo "+ 1 $array[1]"
  echo "+ 2 $array[2]"
  ...
  -------------------------------------------------

  PipeRead my_script.sh

Ciao

Dominik ^_^ ^_^
--
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 Mon Mar 15 2004 - 07:05:49 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:56 BST