stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[STUMP] Changing keyboard layout... forth and back


From: Fabrice Niessen
Subject: [STUMP] Changing keyboard layout... forth and back
Date: Mon, 12 Jan 2009 11:31:18 +0100
User-agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux)

Hello,

As I often have to switch between English and French when
writing, I'd like my QWERTY (GB) keyboard to follow...

My wish would be to be able to switch back and forth between
French and British keyboard layout using the "Caps Lock" key,
but I did not manage to use its correct code in the kbd function
call (is it "ISO_Next_Group"?).

OK, that's the next step, the first being able to make the
desired switch between the 2 keyboard layouts. Here is what I
wrote in my `.stumpwmrc' file to (try to) do so:

--8<---------------cut here---------------start------------->8---
(define-stumpwm-command "set-keyboard-gb" ()
  (run-shell-command "exec setxkbmap gb")
  (define-key *root-map* (kbd "C-i") "set-keyboard-fr"))

(define-stumpwm-command "set-keyboard-fr" ()
  (run-shell-command "exec setxkbmap fr")
  (define-key *root-map* (kbd "C-i") "set-keyboard-gb"))

(run-commands "set-keyboard-gb")
--8<---------------cut here---------------end--------------->8---

By default, it is well in British English. If I press my
prefix-key ("Super" or "Windows" key) followed by `C-i', I am in
French layout. Good... Except my prefix-key becomes disabled...
I've lost everything. I can't control anything anymore!!  I need
to kill my X server and come back to a new session.

Any solution?

Best regards,
  Fabrice Niessen

___________________________________________
address@hidden
Pre-sales, Network and Software Engineer
M i s s i o n   C r i t i c a l   I T
Phone ... +32 2-757.10.15
Fax ..... +32 2-759.27.60





reply via email to

[Prev in Thread] Current Thread [Next in Thread]