Re: FVWM: window-local keymap (a bit of help...)

From: Dominik Vogt <fvwm_at_fvwm.org>
Date: Mon, 29 Sep 2003 17:40:41 +0200

On Mon, Sep 29, 2003 at 05:12:04PM +0200, KONTRA Gergely wrote:
> On 0923, KONTRA Gergely wrote:
>
> Hi!
>
> To complete the window-local keymap, I need the following:
>
> I can set an environment variable to store the current keymap with
>
> SetEnv $[w.id]-key

You should better not use a hyphen in the name and begin it with
a letter, e.g.

  SetEnv keymap$[w.id] ...

> But how can I read it back? So, if I
> SetEnv Keymap-$[w.id] hu

It's surprisingly difficult to do nested expansions. This works:

  piperead "echo setenv tmp_keymap $$\\[keymap$[w.id]\\]"

Now you have the

(Note: both functions must be called in a valid window context).

> Then, how do I set the keyboard to Keymap-$[w.id] ?
> Exec setxkbmap ????

  Exec setxkbmap "$[tmp_keymap]"

> ???? - the value of the environment variable, which is Keymap-$[w.id]

Ciao

Dominik ^_^ ^_^
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Mon Sep 29 2003 - 10:43:07 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:55 BST