Hi Vitaly, Vitaly Mayatskikh wrote: > At Fri, 06 Nov 2009 10:51:40 +0100, Sébastien Vauban wrote: > >> > (define-key *root-map* (kbd "F19") "toggle-keyboard-layout") >> > --8<---------------cut here---------------end--------------->8--- >> >> Still not working. (Very) annoying right now. Have to bind a "normal" key, >> currently `M-t', but not as easy as the useless Caps_Lock and its visual >> feedback (LED on when writing in French keyboard layout). > > If you use Caps Lock for layout switching, why don't you set it up in X? I > also use Caps Lock for that purpose, and I have single line in ~/.xsession: > > setxkbmap -model "pc105" -layout "us,ru(winkeys)" -option > "grp:caps_toggle,grp_led:scroll"
I just created that file, with the following contents: --8<---------------cut here---------------start------------->8--- setxkbmap -model "pc105" -layout "fr,gb" -option "grp:caps_toggle,grp_led:scroll" --8<---------------cut here---------------end--------------->8--- After a logout/login from StumpWM, I tried it: --8<---------------cut here---------------start------------->8--- [...@mundaneum] ~>qwerty zsh: command not found: qwerty [...@mundaneum] ~>~QWERT zsh: no such user or named directory: QWERT [...@mundaneum] ~>~qwerty zsh: no such user or named directory: qwerty [...@mundaneum] ~>~QWERT zsh: no such user or named directory: QWERT --8<---------------cut here---------------end--------------->8--- As you can see: - I am, by default, in qwerty keyboard -- while I expect French with the above line; - When pressing Caps Lock, it does insert a tilde sign, and switches to capital letters, but not to another keyboard layout... So, from what I understand, (it's like if) the file `.xession' is not read? Best regards, Seb -- Sébastien Vauban _______________________________________________ Stumpwm-devel mailing list Stumpwm-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/stumpwm-devel
