Monday, October 12, 2015

Re: vim and touch typing

On Mon, 12 Oct 2015 12:20:42 +0000 Reid Thompson <Reid.Thompson@ateb.com> wrote:

> On Sun, 2015-10-11 at 11:19 +0300, Gevisz wrote:
>
>
> > > AFAIK you cannot do this directly with X server configuration,
> >
> > Yes. That it why I concluded that it is impossible to do in GNU/Linux.
> >
>
> > > but there are a number of "external" keyboard switchers which may
> > > have the needed capabilities.
> >
> > I had an extensive google search earlier and found nothing, though.
> >
> > But you have encouraged to ask this question on gentoo-user.
> >
>
> > > The other variant is a console app like setxkbmap or xkb-switch used
> > > in conjunction with global shortcuts capabilities provided by your
> > > DE/WM (if no, there still are apps which provide global shortcuts
> > > using X server own capabilities).
>
>
> create keymap switch scripts for your 3 layouts.
> I.E.
> $ cat kbswitchus
>
> #!/bin/bash
> setxkbmap us
>
> $ cat kbswitchru
>
> #!/bin/bash
> setxkbmap ru
>
>
> $ cat kbswitchua
> #!/bin/bash
> setxkbmap ua
>
> map each script to the 'direct hot key' that you want

Thank you! That works!

Though, I mapped those commands via xfce4 keyboard setting directly, not via scripts.

Unfortunately, it sets the keyboard layout system-wide but so far it is the best solution.

I also found that it is possible to use
setxkbmap us,ru,ua
setxkbmap ru,us
setxkbmap ua,us
which additionally allows the usual circling/toggling in case I need it.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: