9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: umbraticus@prosimetrum.com
To: 9fans@9fans.net
Subject: Re: [9fans] focus window on plumb
Date: Tue,  4 Sep 2018 07:52:38 +1200	[thread overview]
Message-ID: <412AE320DBC67F9BA80D4D74EE8694C8@prosimetrum.com> (raw)
In-Reply-To: DE76F45CAC63F71ED9BF8A9EAA42867B@prosimetrum.com

Even simpler, run the following program in riostart thus:

window 'raiseplumb web & mothra'
window 'raiseplumb edit & sam'
&c...

could probably even be an rc script

#include <u.h>
#include <libc.h>
#include <plumb.h>

void
main(int argc, char **argv)
{
	Plumbmsg *m;
	int port, wctl;

	if(argc != 2)
		sysfatal("usage: %s port", argv[0]);
	if((port = plumbopen(argv[1], OREAD)) < 0)
		sysfatal("couldn't open plumb port %s", argv[1]);
	if((wctl = open("/dev/wctl", OWRITE)) < 0)
		sysfatal("couldn't open /dev/wctl");
	for(;;){
		if((m = plumbrecv(port)) == nil)
			sysfatal("error on plumb port %s", argv[1]);
		plumbfree(m);
		fprint(wctl, "unhide");
		fprint(wctl, "current");
	}
}

umbraticus



             reply	other threads:[~2018-09-03 19:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-03 19:52 umbraticus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-09-02  8:58 umbraticus

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=412AE320DBC67F9BA80D4D74EE8694C8@prosimetrum.com \
    --to=umbraticus@prosimetrum.com \
    --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).