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

From: Suraj Kurapati <sunaku_AT_gmail.com>
Date: Mon, 5 Oct 2009 15:05:52 -0700

On Mon, Oct 5, 2009 at 1:30 PM, Nathan Neff <nathan.neff_AT_gmail.com> 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:

http://github.com/sunaku/wmiirc/commit/72c464daed724ee045d2112f865d66c4e7602d36#diff-1
Received on Mon Oct 05 2009 - 22:05:52 UTC

This archive was generated by hypermail 2.2.0 : Mon Oct 05 2009 - 22:12:02 UTC