Re: [wmii] I wrote a jump-or-exec

From: Uriel <uriel99_AT_gmail.com>
Date: Thu, 1 Nov 2007 11:03:36 +0100

That is neat. Thanks.

(Not sure if it makes sense as part of the standard distribution, but
it is certainly simple enough).

uriel

On Nov 1, 2007 8:34 AM, S.P.Tseng <mendouer_AT_163.com> wrote:
> Maybe someone like it.
>
> #----------------------------------------
> #
> fn jump-or-exec {
> switch(`{read_tags | grep $1}) {
> case $1
> wmiir xwrite /ctl view $1
> case *
> if (test -n $2) {
> run_command $2 &
> }; if not {
> run_command $* &
> }
> }
> }
>
> You can call it like is
>
> fn Key-$MODKEY-w { jump-or-exec web iceweasel }
>
> --
>
>
>
Received on Thu Nov 01 2007 - 11:03:43 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:30:39 UTC