[hackers] [sites] Fix a thing with the client search menu code snippet || Luka Novsak

From: <hg_AT_suckless.org>
Date: Sun, 16 Aug 2009 10:54:15 +0000 (UTC)

changeset: 124:d85c84b65298
user: Luka Novsak <lukanovsak_AT_gmail.com>
date: Thu Jun 25 22:17:04 2009 +0200
files: wmii.suckless.org/code_snippets/plan_9_port/index.md
description:
Fix a thing with the client search menu code snippet

diff -r c113cf11d44b -r d85c84b65298 wmii.suckless.org/code_snippets/plan_9_port/index.md
--- a/wmii.suckless.org/code_snippets/plan_9_port/index.md Thu Jun 25 10:32:55 2009 +0200
+++ b/wmii.suckless.org/code_snippets/plan_9_port/index.md Thu Jun 25 22:17:04 2009 +0200
@@ -145,16 +145,16 @@
       key $MODKEY-A-^(a b c d e f g h i j k l m n o p q r s t u v w x y z) || fn $key {
           TagCycle $1}
 
-Find and go to clients
-----------------------
+Find and go to client
+---------------------
 
     fn title {
- echo `{wmiir read /client/$1/label}}
+ echo -n `{wmiir read /client/$1/label}}
 
     fn focusclient {
         tag=`{wmiir read /client/$1/tags | cut -d+ -f1}
- wmiir xwrite /ctl view $tag
- wmiir xwrite /tag/$tag/ctl select client $1}
+ wmiir xwrite /tag/$tag/ctl select client $1
+ wmiir xwrite /ctl view $tag}
 
     key $MODKEY-u || fn $key {
         ifs=$wi_nl {
Received on Sun Aug 16 2009 - 10:54:15 UTC

This archive was generated by hypermail 2.2.0 : Sun Aug 16 2009 - 14:19:54 UTC