Re: [i3] I3 and emacs

2015-03-04 Thread Jeff Abrahamson
That's really great, thanks.  I think this solved what I want.  This leaves
me with only a small question that I've half-answered below.

So I say this in my config:

bindsym $mod+Tab mode I3

mode I3 {
# start a terminal
bindsym c exec urxvt

...
bindsym Escape mode default
}

And now I can type $mod+Tab c to open a new terminal, $mod-Tab f to go
full screen, etc.  And, meanwhile, $mod-f does what I expect it to in emacs
and bash, which is to go forward one word.

One curiosity is that my I3 mode is, well, modal.  Sometimes I suppose this
makes sense, if I'm going to issue quite a lot of commands to the window
manager.  (This is the case with resize mode.)  But It would be nice to
have a transient mode where any command within the mode is executed and
then causes the mode to exit.  Is that possible?

Let me half answer that question.  I've discovered it's possible if I ask
for it with each command:

bindsym f fullscreen; mode default

But it would be cool to be able to specify this about the mode rather than
have to repeat myself throughout the mode's bindings.

bindsym $mod+Tab transientmode I3


Jeff Abrahamson
+33 6 24 40 01 57
+44 7920 594 255-- only if I'm in the UK

http://jeff.purple.com/
http://blog.purple.com/jeff/

On 21 February 2015 at 11:22, Michael Stapelberg mich...@i3wm.org wrote:

 See https://faq.i3wm.org/question/360/emacs-like-keybinding/

 On Sat, Feb 21, 2015 at 8:45 AM, Jeff Abrahamson j...@purple.com wrote:
  I'd like to use I3 and emacs. I don't have a spare modifier key on my
  keyboard, so I'd like to use a prefix key. Maybe I missed it in the
 docs, in
  which case, please accept my apologies. (I've only just begun to look at
 the
  source.)
 
  1. Is there support for this currently in I3?
 
  2. If not, is there interest in a patch?
 
  Jeff Abrahamson
  +33 6 24 40 01 57
  +44 7920 594 255-- only if I'm in the UK
 
  http://jeff.purple.com/
  http://blog.purple.com/jeff/



 --
 Best regards,
 Michael



Re: [i3] I3 and emacs

2015-02-21 Thread Michael Stapelberg
See https://faq.i3wm.org/question/360/emacs-like-keybinding/

On Sat, Feb 21, 2015 at 8:45 AM, Jeff Abrahamson j...@purple.com wrote:
 I'd like to use I3 and emacs. I don't have a spare modifier key on my
 keyboard, so I'd like to use a prefix key. Maybe I missed it in the docs, in
 which case, please accept my apologies. (I've only just begun to look at the
 source.)

 1. Is there support for this currently in I3?

 2. If not, is there interest in a patch?

 Jeff Abrahamson
 +33 6 24 40 01 57
 +44 7920 594 255-- only if I'm in the UK

 http://jeff.purple.com/
 http://blog.purple.com/jeff/



-- 
Best regards,
Michael