9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Steve Simon" <steve@quintile.net>
To: 9fans@9fans.net
Subject: Re: [9fans] fortune in login window
Date: Tue,  9 Sep 2008 10:20:59 +0100	[thread overview]
Message-ID: <3fb00f7a252623d8def0855209d03e61@quintile.net> (raw)
In-Reply-To: <10b109140809090058q6c7b7b31u32f39d71644c779@mail.gmail.com>

The startup script is envoked by your profile ($home/lib/profile)
where it starts rio (I call mine startup, you seem to call yours
riostartup, its personal choice really)

here is the relevant line in mine:

	exec rio -s -i startup

and here is my $home/bin/rc/startup

	#!/bin/rc

	auth/fgui &
	if(~ $service terminal)
		window -r 0 0 200 120 stats -lmei $sysname $cpu
	if not
		window -r 0 0 200 120 stats -lmei

	window -r 201 0 845 120 faces -i
	window -r 1159 0 1279 120 clock
	window -r 95 212 921 734 logwin

The last line above starts logwin which is a seperate script which
opens my first terminal window and runs fortune etc in it, here is
$home/bin/rc/logwin

	#!/bin/rc

	fortune
	calendar -y
	news
	echo

	exec rc -i

-Steve



  reply	other threads:[~2008-09-09  9:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-09  7:58 Antonin Vecera
2008-09-09  9:20 ` Steve Simon [this message]
2008-09-09 10:16   ` Antonin Vecera

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=3fb00f7a252623d8def0855209d03e61@quintile.net \
    --to=steve@quintile.net \
    --cc=9fans@9fans.net \
    /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).