[9fans] plan9port rio and keyboard shortcuts

2012-07-10 Thread Rudolf Sykora
Hello,

In p9p's rio there is a possibility to cycle over windows with left_alt-tab.
Has anyone thought about / managed to add some more shortcuts, e.g.
such that would run a program like dmenu?
(Do you start all your programs from a terminal?)

Thanks
Ruda



Re: [9fans] plan9port rio and keyboard shortcuts

2012-07-10 Thread Federico Benavento
cinap has a patch for that in /n/sources/contrib/cinap_lenrek/rio.c, I don't 
remember
the scapes, I think it was ^n or ^m.

On Jul 10, 2012, at 6:26 AM, Rudolf Sykora wrote:

 Hello,
 
 In p9p's rio there is a possibility to cycle over windows with left_alt-tab.
 Has anyone thought about / managed to add some more shortcuts, e.g.
 such that would run a program like dmenu?
 (Do you start all your programs from a terminal?)
 
 Thanks
 Ruda
 

---
Federico G. Benavento
benave...@gmail.com







Re: [9fans] plan9port rio and keyboard shortcuts

2012-07-10 Thread John Floren
On Tue, Jul 10, 2012 at 2:26 AM, Rudolf Sykora rudolf.syk...@gmail.com wrote:
 Hello,

 In p9p's rio there is a possibility to cycle over windows with left_alt-tab.
 Has anyone thought about / managed to add some more shortcuts, e.g.
 such that would run a program like dmenu?
 (Do you start all your programs from a terminal?)

 Thanks
 Ruda


I put some additional keyboard functionality into w9wm at one point,
it's not that hard. Look at /usr/local/plan9/src/cmd/rio/key.c:44,
figure out what key presses you want to handle, then do a fork+exec or
whatever floats your boat.

You might also find 9menu handy, although personally I don't like
using it in p9p rio because rio doesn't pass focus clicks through to
the client, meaning I have to click twice (annoying). I just use a
terminal to start programs.

I'm using p9p rio right now, but that's because I cycle through about
a half-dozen window managers a year in search of WM nirvana. I love
using rio on Plan 9, but I'm not entirely convinced it is best-suited
for the way I use Unix. Some day I may write my own WM, but today is
not that day.


john