Re: [wmii] Open in new column if only one column.

From: Kris Maglione <maglione.k_AT_gmail.com>
Date: Mon, 22 Dec 2008 18:53:59 -0500

On Sun, Dec 21, 2008 at 10:23:38PM -0800, Nathan Neff wrote:
>if there is 1 column open, then open a new column when I create a window
>otherwise, split current column.

It's not really straightforward. You'd have to script it.

        Event CreateClient
                local client=$1
                IFS=+; local tags=$(wmiir read /client/$client/tags); unset IFS
                for tag in $tags; do
                        if [ $(wmiir read "/tag/$tag/index" | grep '^#' | wc -l) = 2 ]; then
                                wmiir xwrite "/tag/$tag/ctl" $client right
                        fi
                done

-- 
Kris Maglione
The string is a stark data structure and everywhere it is passed there
is duplication.  It is a perfect vehicle for hiding information.
	--Alan J. Perlis
Received on Mon Dec 22 2008 - 23:53:59 UTC

This archive was generated by hypermail 2.2.0 : Tue Dec 23 2008 - 00:00:07 UTC