From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3e1162e60610261455o79ee37bem8f46f93e6522ef72@mail.gmail.com> Date: Thu, 26 Oct 2006 14:55:37 -0700 From: "David Leimbach" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: [9fans] my winwatch virtual desktop-like space setup thingy... Topicbox-Message-UUID: d73c1e8a-ead1-11e9-9d60-3106f5b1d025 I was asked to post it so here goes. It's not very cleaned up yet but what I have is basically the following: (feel free to critique it, beat me about the head and neck with my own ignorance or whatever...) in lib/profile switch($service) { case terminal plumber upas/fs exec rio -i lib/mystart ... lib/mystart: #!/bin/rc swidth=`{cat /env/vgasize | awk -F x '{print $1}'} sheight=`{cat /env/vgasize | awk -F x '{print $2}'} window -r 0 0 100 $sheight winwatch -e winwatch # Below are my "desktops" They just overlap # Yes I know the full path isn't necessary... window -r 100 0 400 200 kprinter # just watches /dev/kprint for me... window -r 101 0 $swidth $sheight /usr/leimy/bin/rc/riosession SEmail # Speakeasy email window -r 101 0 $swidth $sheight /usr/leimy/bin/rc/riosession Mormail # Mordor email window -r 101 0 $swidth $sheight /usr/leimy/bin/rc/riosession Work # "work" Then there's "riosession" #!/bin/rc echo -n $1 > /dev/label bind /dev/null /dev/label sleep 2 # I actually forget why I did that rio