Re: [wmii] snap: 20060412

From: Anselm R. Garbe <garbeam_AT_wmii.de>
Date: Thu, 13 Apr 2006 10:10:20 +0200

On Wed, Apr 12, 2006 at 10:04:15PM +0200, Bartosz Trudnowski wrote:
> Using two(!) greps while using awk is, well, suboptimal ;).
>
> *** wmiirc.org 2006-04-12 21:42:29.000000000 +0200
> --- wmiirc 2006-04-12 21:43:15.000000000 +0200
> ***************
> *** 133,135 ****
> $MODKEY-t)
> ! xwrite /view/ctl view "`wmiir read /view | awk '{print $10}' |
> grep -v 'sel' | grep -v 'ctl' | wmiimenu`" &;;
> $MODKEY-[0-9])
> --- 133,135 ----
> $MODKEY-t)
> ! xwrite /view/ctl view "`wmiir read /view | awk
> '!/ctl|sel/{print $10}' | wmiimenu`" &;;
> $MODKEY-[0-9])

Simplified in hg tip.

-- 
 Anselm R. Garbe  ><><  www.ebrag.de  ><><  GPG key: 0D73F361
Received on Thu Apr 13 2006 - 10:10:20 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:02:36 UTC