Configure X: multiple keyboard layouts ?

2010-03-07 Thread Niki Kovacs

Hi,

I'd like to configure X for multiple keyboard layouts, e. g.:

- french
- swiss french
- german

On my Linux box (running CentOS 5.4 and a dated version of X.org), the 
configuration for this looks like this :


Section InputDevice
  Identifier  Keyboard0
  Driver  kbd
  Option  XkbModel pc105
  Option  XkbLayout fr,ch,de
  Option  XkbVariant ,fr,
  Option  XkbOptions grp:alt_shift_toggle
EndSection

This stanza enables me to toggle between different keyboard layouts, 
using the [Alt]+[RightShift] key combination. You might wonder about the 
XkbVariant option: the swiss keyboard layout has two variants: fr and 
de. This is to indicate the swiss roman layout.


Now is there any way I could achieve a similar thing with the more 
recent X.org shipping with FreeBSD 8.0 ?


Any suggestions ?

Niki Kovacs
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Configure X: multiple keyboard layouts ?

2010-03-07 Thread Frank Shute
On Sun, Mar 07, 2010 at 11:09:16AM +0100, Niki Kovacs wrote:

 Hi,
 
 I'd like to configure X for multiple keyboard layouts, e. g.:
 
 - french
 - swiss french
 - german
 
 On my Linux box (running CentOS 5.4 and a dated version of X.org), the 
 configuration for this looks like this :
 
 Section InputDevice
   Identifier  Keyboard0
   Driver  kbd
   Option  XkbModel pc105
   Option  XkbLayout fr,ch,de
   Option  XkbVariant ,fr,
   Option  XkbOptions grp:alt_shift_toggle
 EndSection
 
 This stanza enables me to toggle between different keyboard layouts, 
 using the [Alt]+[RightShift] key combination. You might wonder about the 
 XkbVariant option: the swiss keyboard layout has two variants: fr and 
 de. This is to indicate the swiss roman layout.
 
 Now is there any way I could achieve a similar thing with the more 
 recent X.org shipping with FreeBSD 8.0 ?
 
 Any suggestions ?

Hi Niki,

Welcome to FreeBSD!

There is a way to achieve similar results with recent X.org.

X nowadays can get by without an xorg.conf and by default it uses hald
and dbus to configure keyboard, mouse etc.

It's documented how you can create an xorg.conf and use that for
device config rather than hald:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-config.html

You basically create an xorg.conf and then add:

Option AutoAddDevices false

to the ServerLayout section and then your keyboard config placed in
your xorg.conf will be picked up.

You will also need a section for the mouse along the lines of:

Section InputDevice
Identifier  Mouse0
Driver  mouse
Option  CorePointer
Option  Protocol auto
Option  Device /dev/sysmouse
#   Option  Emulate3Buttons false
Option  ZAxisMapping 4 5 6 7# For scroll wheel
EndSection

It's parameters are dependent on your type of mouse.

With that and xorg.conf placed under /etc/X11/ you should be good to
go.

But I'm quite sure you know that xorg.conf can be a fiddle ;)

If you get stuck, post your xorg.conf

BTW, if you haven't read it already the manpage for moused(8) is quite
a revelation. The FreeBSD mouse driver puts the Linux mouse driver to
shame!

Regards,

-- 

 Frank

 Contact info: http://www.shute.org.uk/misc/contact.html


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: KDE doesn't switch between keyboard layouts in FreeBSD

2008-03-20 Thread Yuri



Edit the file:

~/.kde/share/config/kdeglobals

and add the following line in the Global Shortcuts section:

Switch to Next Keyboard Layout=default(Alt+Shift_L)
I already have similar line: Switch to Next Keyboard 
Layout=default(Alt+Ctrl+K)
And it witches English-Cyrillic, but when I press it the second time it 
only beeps and doesn't switch.


Yuri
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: KDE doesn't switch between keyboard layouts in FreeBSD

2008-03-20 Thread Manolis Kiagias



Yuri wrote:



Edit the file:

~/.kde/share/config/kdeglobals

and add the following line in the Global Shortcuts section:

Switch to Next Keyboard Layout=default(Alt+Shift_L)
I already have similar line: Switch to Next Keyboard 
Layout=default(Alt+Ctrl+K)
And it witches English-Cyrillic, but when I press it the second time 
it only beeps and doesn't switch.



I believe the trick is to set the option in this file to the exact same 
key combination you used in xkboptions in the GUI. This is how it works 
for me.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


KDE doesn't switch between keyboard layouts in FreeBSD

2008-03-19 Thread Yuri

Hi,

I am using 'KDE Keyboard Tool' on FreeBSD-7.0.
I have US layout and Cyrillic layouts selected.
And on Xkb Options tab I selected Both Shift Keys together change layout

But when I press both Shifts layout doesn't change.

Anyone has this working?

Yuri
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: KDE doesn't switch between keyboard layouts in FreeBSD

2008-03-19 Thread Manolis Kiagias

Yuri wrote:

Hi,

I am using 'KDE Keyboard Tool' on FreeBSD-7.0.
I have US layout and Cyrillic layouts selected.
And on Xkb Options tab I selected Both Shift Keys together change 
layout


But when I press both Shifts layout doesn't change.

Anyone has this working?

Yuri
___

I guess it could be the same problem we have with the Greek keyboard 
layout.

It is worth a try.

Edit the file:

~/.kde/share/config/kdeglobals

and add the following line in the Global Shortcuts section:

Switch to Next Keyboard Layout=default(Alt+Shift_L)

(Obviously you will need to adjust this for both shifts, I am not 
certain of the shortcut, maybe Shift_L+Shift_R)


if the little flag in the tray reacts to the keys, you are all set.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Alternative keyboard layouts not working with xorg7.2

2007-05-23 Thread Norberto Meijome
On Wed, 23 May 2007 02:36:14 +1000
Norberto Meijome [EMAIL PROTECTED] wrote:

 Hello everyone,
 I've had xorg 6.x configured to allow me to switch from US English keyboard to
 US English with international support (for accented characters) as follows:
 
 in xorg.conf:
 [...]
 Section InputDevice
 Identifier  KeyboardThinkpadZ60M
 Driver  kbd
 Option  XkbRules xorg
 Option  XkbModel inspiron
 Option  XkbLayout us,us
 Option  XkbVariant ,intl
 Option  XKbOptions grp:alt_shift_toggle
 EndSection
 
 [...]
 
 and in /usr/X11R6/lib/X11/xkb/X0-config.keyboard (now under /usr/local/ )
 
 Rules=  xorg
 Model=  inspiron
 Layout   =  us,us
 Variant  =  ,intl
 MouseKeysCurve   =  0
 
 
 I use XFCE4.4 as my environment, and both the 'Keyboard Layout Switcher' 
 applet
 and the left alt-shift combos would allow me to switch between the 2 modes
 flawlessly.
 
 After the upgrade to xorg 7.2, using the same configuration, I noticed several
 problems related to the keyboard behaviour, namely:
 
 1) - neither method to change the keyboard layout works.
 2) - Several shortcuts that involve the Alt (left) key work either : alt-tab 
 to
 cycle through windows, ctrl-alt-arrows to move through desktops.
 3) - When launching the application 'skippy' (x11-wm/skippy) or skippy-xd
 (x11-wm/skippy-xd), i get :
 
 $ skippy-xd 
 X Error of failed request:  BadAccess (attempt to access private resource 
 denied)
   Major opcode of failed request:  33 (X_GrabKey)
   Serial number of failed request:  75
   Current serial number in output stream:  75
 
 This never used to happen before (notice the X_GrabKey error).
 

I've noticed also that Ctrl-Alt-F1 (through to F6) doesn't change back to a 
non-X terminal anymore... 
it seems the alt key is not being processed at all 

 
 I tried a clean keyboard config (only 1 layout) and the problem with the 
 normal
 XFCE shortcuts (problem #2) is solved... 
 
 I tried creating a separate keyboard using xorgcfg with the 'intl' layout, but
 it didnt do what I wanted - problem #2 was still solved, but I couldnt switch
 between layouts (which is rather obvious, as they were defined as different
 keyboards...)
 
 If anyone could shed some light on this, it'd be greatly appreciated :)
 
 Thanks!
 Beto
 _
 {Beto|Norberto|Numard} Meijome
 
 All that is necessary for the triumph of evil is that good men do nothing.
   Edmund Burke
 
 I speak for myself, not my employer. Contents may be hot. Slippery when wet.
 Reading disclaimers makes you go blind. Writing them is worse. You have been
 Warned.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]


_
{Beto|Norberto|Numard} Meijome

Never offend people with style when you can offend them with substance.
  Sam Brown

I speak for myself, not my employer. Contents may be hot. Slippery when wet. 
Reading disclaimers makes you go blind. Writing them is worse. You have been 
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Alternative keyboard layouts not working with xorg7.2

2007-05-23 Thread Nick Jagger
- Original Message 
From: Norberto Meijome [EMAIL PROTECTED]
To: freebsd-questions@freebsd.org
Sent: Wednesday, May 23, 2007 11:51:50 AM
Subject: Re: Alternative keyboard layouts not working with xorg7.2

On Wed, 23 May 2007 02:36:14 +1000
Norberto Meijome [EMAIL PROTECTED] wrote:

I've noticed also that Ctrl-Alt-F1 (through to F6) doesn't change back to 
 a non-X terminal anymore... 

I second that.






  
Fussy?
 Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel and lay 
it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Alternative keyboard layouts not working with xorg7.2

2007-05-23 Thread Norberto Meijome
On Wed, 23 May 2007 03:04:07 -0700 (PDT)
Nick Jagger [EMAIL PROTECTED] wrote:

 - Original Message 
 From: Norberto Meijome [EMAIL PROTECTED]
 To: freebsd-questions@freebsd.org
 Sent: Wednesday, May 23, 2007 11:51:50 AM
 Subject: Re: Alternative keyboard layouts not working with xorg7.2
 
 On Wed, 23 May 2007 02:36:14 +1000
 Norberto Meijome [EMAIL PROTECTED] wrote:
 
 I've noticed also that Ctrl-Alt-F1 (through to F6) doesn't change back 
  to a non-X terminal anymore... 
 
 I second that.
 

:( 

do you have alternative layouts in your xkb / xorg config? 

does alt work for other tasks, like Alt-Tab? (it does for me if I remove the
different keyboard layouts).

FWIW, i just remembered than when I just upgraded to xorg7.2, i had to
reconfigure xfce to allow me to drag windows using the alt key... it used to be
called 'alt' before, now it works when I set the option in xfce to Mod4 

(which is interesting, because xbindkeys has always seen my left alt as mod4,
even before 7.2)

i'll have a play with this when i can...
_
{Beto|Norberto|Numard} Meijome

So limp of brain that for them to conceive an idea is to risk a haemorrhage.
So limp of body that their purple dresses appear no more a dixative of housing
nerves and sinews than when they hang suspended from their hooks Mervin Peake,
Gormenghast, chap. 2, on the Earl's twin sisters

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Alternative keyboard layouts not working with xorg7.2

2007-05-22 Thread Norberto Meijome
Hello everyone,
I've had xorg 6.x configured to allow me to switch from US English keyboard to
US English with international support (for accented characters) as follows:

in xorg.conf:
[...]
Section InputDevice
Identifier  KeyboardThinkpadZ60M
Driver  kbd
Option  XkbRules xorg
Option  XkbModel inspiron
Option  XkbLayout us,us
Option  XkbVariant ,intl
Option  XKbOptions grp:alt_shift_toggle
EndSection

[...]

and in /usr/X11R6/lib/X11/xkb/X0-config.keyboard (now under /usr/local/ )

Rules=  xorg
Model=  inspiron
Layout   =  us,us
Variant  =  ,intl
MouseKeysCurve   =  0


I use XFCE4.4 as my environment, and both the 'Keyboard Layout Switcher' applet
and the left alt-shift combos would allow me to switch between the 2 modes
flawlessly.

After the upgrade to xorg 7.2, using the same configuration, I noticed several
problems related to the keyboard behaviour, namely:

1) - neither method to change the keyboard layout works.
2) - Several shortcuts that involve the Alt (left) key work either : alt-tab to
cycle through windows, ctrl-alt-arrows to move through desktops.
3) - When launching the application 'skippy' (x11-wm/skippy) or skippy-xd
(x11-wm/skippy-xd), i get :

$ skippy-xd 
X Error of failed request:  BadAccess (attempt to access private resource 
denied)
  Major opcode of failed request:  33 (X_GrabKey)
  Serial number of failed request:  75
  Current serial number in output stream:  75

This never used to happen before (notice the X_GrabKey error).


I tried a clean keyboard config (only 1 layout) and the problem with the normal
XFCE shortcuts (problem #2) is solved... 

I tried creating a separate keyboard using xorgcfg with the 'intl' layout, but
it didnt do what I wanted - problem #2 was still solved, but I couldnt switch
between layouts (which is rather obvious, as they were defined as different
keyboards...)

If anyone could shed some light on this, it'd be greatly appreciated :)

Thanks!
Beto
_
{Beto|Norberto|Numard} Meijome

All that is necessary for the triumph of evil is that good men do nothing.
  Edmund Burke

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


two KEYBOARD LAYOUTS....

2003-08-14 Thread Denis
Hi All!

Does anybody know how can use two keyboard layouts?
I want to change between russian and english keyboard.
Now I do it by click in the tray menu...
And how i can change by... ctrl+shift

Thanking you in anticipation for answers!!!

Denis.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Loading keymaps (was: two KEYBOARD LAYOUTS....)

2003-08-14 Thread Greg 'groggy' Lehey
On Thursday, 14 August 2003 at 19:56:48 +0400, Denis wrote:
 Hi All!

 Does anybody know how can use two keyboard layouts?
 I want to change between russian and english keyboard.
 Now I do it by click in the tray menu...
 And how i can change by... ctrl+shift

I do this in X with the following:


1.  .fvwmrc entries:

+   German Keyboard   Exec xmodmap xmodmap.de
+   Australian Keyboard   Exec xmodmap xmodmap.au

If you're using another window manager than fvwm2, you'll have to work
out how to build custom menus with it.

2.  Create xmodmap.as and xmodmap.de like this:

a.  Set the appropriate keyboard map by whichever means you
currently use.
b.  Do

xmodmap -pke  xmodmap.au

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers


pgp0.pgp
Description: PGP signature


Keyboard layouts

2003-07-19 Thread Denis
Hello!

Anybody know how can I change keyboard layouts by keyboard?
I have two keyboard layouts there are: english and russian. Now I change my 
keyboard layouts by click in the tray menu May be is some keyboard 
combination?

Thanks a lot!

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]