From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 24 Apr 2012 15:10:58 +0000 From: sl@9front.org To: 9fans@9fans.net Message-ID: <75a6498210a480556cdcc1a42034c267@sp.nv> In-Reply-To: <686C428F-FB3E-4988-A2CE-70FE50ED8CD8@gmail.com> References: <686C428F-FB3E-4988-A2CE-70FE50ED8CD8@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Plan 9 keyboard and mouse Topicbox-Message-UUID: 7b92f724-ead7-11e9-9d60-3106f5b1d025 > I believe sl wrote a program that lets you group windows onto > function keys Specifically, taruti hacked rio to map certain windows to a tag (similar to dwm) by writing stings to /dev/wctl, then switch between the tags by hitting a function key, which brings all the windows in the given tag to the top. I packaged this for 9front and included some scripts that I launch from my riostart to setup my environment: http://plan9.stanleylieber.com/pkg/386/hjrio-2012.04.17.tbz Unpack over / and the source will be installed in /sys/src/pkg/hjrio-2012.04.17 (no binaries will be installed on the system until you run 'mk install' in the source directory). So far as I know, I'm the only person who actually uses this code. My rio environment is comprised of four general sections, constructed by four (included) rc scripts. The four scripts -- header, verso, recto and spread -- organize the screen as follows: header the following are always visible winwatch faces weather ticker displayed via aux/statusmsg stats verso tag one several irc7 windows displaying one channel per window recto tag one tw tag three kprint ssh session to openbsd telnet session to 9bbs tag five nedmail spread tag two sam These are in turn launched from my riostart: % cat $home/lib/riostart #!/bin/rc header spread recto verso -i if(~ $sysname mt*) recto -6 if not recto -3 In the end, it all looks something like this: http://plan9.stanleylieber.com/rio/img/tagone.png http://plan9.stanleylieber.com/rio/img/tagtwo.png http://plan9.stanleylieber.com/rio/img/tagthree.png http://plan9.stanleylieber.com/rio/img/tagfour.png http://plan9.stanleylieber.com/rio/img/tagfive.png The result is that the environment snaps into being whenever I boot my terminal. I switch between tags by hitting the corresponding function key (f1 for tag one, f2 for tag two, and so on). In practice, I almost never have to create or destroy windows unless I'm doing something temporary or unusual. -sl