Re: [dev] [dwm] [wmii] Prompt for client to add to current view

From: Nathan Neff <>
Date: Tue, 6 Oct 2009 14:41:20 -0500

On Mon, Oct 5, 2009 at 5:05 PM, Suraj Kurapati <> wrote:

> On Mon, Oct 5, 2009 at 1:30 PM, Nathan Neff <> wrote:
> > I'd like to have a menu that shows all the currently running clients,
> > and when I select a client, the current tag is applied to that client.
> You can do it like this now in my Ruby wmiirc:
> your_chosen_shortcut: | # bring a chosen client into current view
> client = client_menu('invite client:') and client.tag curr_tag
> > The rumai wmiirc has a similar feature that will show a list of clients,
> > and when you choose a client, the selected client is shown.
> I refactored that functionality into a common client_menu() method
> (used in the above example) that is shared by all branches:
That is great!

I changed my config.yaml to look like this:

    ${mod}-c: | # focus client chosen from a menu
      client = client_menu('invite client:') and client.tag curr_tag


Thank you very much! I'm going to delve further into your wmiirc
stuff using the interactive prompt. I don't quite understand how
gets turned into "real" ruby code, but will check out the tutorials on the

Received on Tue Oct 06 2009 - 19:41:20 UTC

This archive was generated by hypermail 2.2.0 : Tue Oct 06 2009 - 19:48:01 UTC