[SOLVED]How to set default keyboard setting in xorg.conf

Requests go here. If you fill a request, give it a new thread in the appropriate category and then link to it in the request thread.
Post Reply
Message
Author
night_mare007
Posts: 30
Joined: Sun 07 Aug 2011, 17:13

[SOLVED]How to set default keyboard setting in xorg.conf

#1 Post by night_mare007 »

Hi,
I use puppy lucid 5.25.

I wish to know how can i script / change a file in the system so every time xorgwizard recreate "xorg.conf" file - it will automaticlly add my keyboard settings:
1. language support: US + additional foreign language.
2. set the ALT+SHIFT as the key for switching the keyboard language.

Today, xorgwizard automatically create xorg.conf and set US as the only language available. so it forces me every time to use "KXB configuration" tool.

I wish that it will do it automatically for my config as I stated above.

THANKS !!!
Last edited by night_mare007 on Fri 12 Aug 2011, 21:31, edited 1 time in total.

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#2 Post by technosaurus »

in /etc/X11/xorg.conf
you should see something like

Code: Select all

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option      "XkbRules" "xorg"
	Option      "XkbModel" "pc102"
	Option      "XkbLayout" "us" #xkeymap0
EndSection
try changing that
...for scripting you can add stuff to /root/.xinitrc ($HOME/.xinitrc)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

night_mare007
Posts: 30
Joined: Sun 07 Aug 2011, 17:13

#3 Post by night_mare007 »

in /etc/X11/xorg.conf
you should see something like
m8...
thank for tha fast reply... but mybe it was too fast: have read my post at all ?

I know what's in xorg.conf.
I can and must set the keyboard settings MANUALLY every time after xorgwizard works ( cuz it's rebuilding xconf.conf and purge/rename the old one ).

I want an AUTOMATED solution.
every idea in that direction will be welcome.

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#4 Post by Dougal »

Open /usr/sbin/xorgwizard and find the bit that looks like

Code: Select all

     TEMPSECTION="$TEMPSECTION
	Option      \"XkbRules\" \"xorg\"
	Option      \"XkbModel\" \"pc102\"
	Option      \"XkbLayout\" \"$XKEYMAP\" #xkeymap0"
and replace the last line to

Code: Select all

	Option      \"XkbLayout\" \"$XKEYMAP,us\" #xkeymap0
	Option      \"XkbOptions\" \"grp:alt_shift_toggle,grp_led:scroll\" "
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

night_mare007
Posts: 30
Joined: Sun 07 Aug 2011, 17:13

SOLVED !

#5 Post by night_mare007 »

WONDERFULL !!!!! YES !!!! :) 8) :lol: :P :P :P :D :D

That's the answer !!!

THANK YOU Dougal !!!

Post Reply