9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Borderless rio
@ 2009-04-26 18:30 yy
  2009-04-27 11:39 ` erik quanstrom
  2009-04-28 22:48 ` Russ Cox
  0 siblings, 2 replies; 3+ messages in thread
From: yy @ 2009-04-26 18:30 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

I'm sending this to the list because I don't remember who was talking
about it in #plan9 some days ago. Somebody suggested to modify rio to
open all the windows at fullscreen, this way you could run several
rios as if they were workspaces.

I have found more practical to add an -I option to run rio in "non
interactive mode", which means: windows have no borders, there is no
button3 menu and new windows are open by default at full screen size.
Very few modifications were needed. If the person from the irc channel
or somebody else is interested I can send the code (I asked for a
contrib dir some time ago, btw).

I also have a question. I'm running this script to open rio with workspaces :
%vx ; cat bin/rc/riows
#!/bin/rc

labels=$*
if(test $#labels -lt 1)
	labels=(1 2 3 4)

rio.b -I -i'\
	for(label in $labels)
		window -miny 40 ''rio -i ''''label ''$label''''''''
	# give time to set all the labels
	sleep 0.5
	window -dy 39 ''winwatch -e ''''^(winwatch|stats|faces)'''''''

My question is: what is the better way to avoid that lot of quotes? I
can think of variables or functions, but I wonder what is the idiom
for nested quotes.

Kind regards,


--
- yiyus || JGL .



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9fans] Borderless rio
  2009-04-26 18:30 [9fans] Borderless rio yy
@ 2009-04-27 11:39 ` erik quanstrom
  2009-04-28 22:48 ` Russ Cox
  1 sibling, 0 replies; 3+ messages in thread
From: erik quanstrom @ 2009-04-27 11:39 UTC (permalink / raw)
  To: 9fans

> labels=$*
> if(test $#labels -lt 1)
> 	labels=(1 2 3 4)
>
> rio.b -I -i'\
> 	for(label in $labels)
> 		window -miny 40 ''rio -i ''''label ''$label''''''''
> 	# give time to set all the labels
> 	sleep 0.5
> 	window -dy 39 ''winwatch -e ''''^(winwatch|stats|faces)'''''''
>
> My question is: what is the better way to avoid that lot of quotes? I
> can think of variables or functions, but I wonder what is the idiom
> for nested quotes.

you could use here documents, but i don't really think that would be
better.

it's interesting that duff's shell does fall into the same quoting pit as
bourne's, just in more esoteric situations.

- erik



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9fans] Borderless rio
  2009-04-26 18:30 [9fans] Borderless rio yy
  2009-04-27 11:39 ` erik quanstrom
@ 2009-04-28 22:48 ` Russ Cox
  1 sibling, 0 replies; 3+ messages in thread
From: Russ Cox @ 2009-04-28 22:48 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> I also have a question. I'm running this script to open rio with workspaces :
> %vx ; cat bin/rc/riows
> #!/bin/rc
>
> labels=$*
> if(test $#labels -lt 1)
>        labels=(1 2 3 4)
>
> rio.b -I -i'\
>        for(label in $labels)
>                window -miny 40 ''rio -i ''''label ''$label''''''''
>        # give time to set all the labels
>        sleep 0.5
>        window -dy 39 ''winwatch -e ''''^(winwatch|stats|faces)'''''''
>
> My question is: what is the better way to avoid that lot of quotes? I
> can think of variables or functions, but I wonder what is the idiom
> for nested quotes.

the better way is to make each one of your giant
quoted strings its own shell script.  that's more
useful too.

russ


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-04-28 22:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-26 18:30 [9fans] Borderless rio yy
2009-04-27 11:39 ` erik quanstrom
2009-04-28 22:48 ` Russ Cox

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).