9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "David Leimbach" <leimy2k@gmail.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu>
Subject: [9fans] my winwatch virtual desktop-like space setup thingy...
Date: Thu, 26 Oct 2006 14:55:37 -0700	[thread overview]
Message-ID: <3e1162e60610261455o79ee37bem8f46f93e6522ef72@mail.gmail.com> (raw)

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


             reply	other threads:[~2006-10-26 21:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-26 21:55 David Leimbach [this message]
2006-10-30 19:14 ` Joel Salomon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3e1162e60610261455o79ee37bem8f46f93e6522ef72@mail.gmail.com \
    --to=leimy2k@gmail.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).