Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-18-2009, 06:25 AM   #1
LQ Newbie
Registered: Jun 2009
Location: Italy
Distribution: Arch Linux
Posts: 8

Rep: Reputation: 0
Question How to execute commands at xorg startup?

Hello everybody! This is my first post here. I'm running Arch Linux on an old Compaq Armada e500. Everything works very good but xorg, wich auto-configures itself with HAL, starts with an US keyboard layout while i have a IT one. Since I haven't got an xorg.conf file and I don't want to create one because the rest of the configuration is perfect, i have to give the "setxkbmap it" command everytime. Is there a way to execute this command automatically at xorg startup? (I use lxde with GDM) Or maybe is there a way to change permanently the keymap without an xorg.conf? The keymap for the console is IT as it's set in the rc.conf file, but this doesn't have any effect on the xorg configuration.
Old 06-18-2009, 06:35 AM   #2
Registered: Sep 2005
Location: UK
Distribution: Gentoo/Debian/Ubuntu
Posts: 307

Rep: Reputation: 38
In theory it should be set in xorg.conf to make sure it's set.

LXDE has a control file for startup in /etc/xdg/lxsession/LXDE/autostart. Dump the command in there and you should be good to go.
Old 06-18-2009, 07:41 AM   #3
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,892
Blog Entries: 27

Rep: Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183

Welcome to LQ!

Take a look at the ArchLinux Wiki for the keyboard setup or look at the xorg section.
Old 06-18-2009, 03:42 PM   #4
LQ Newbie
Registered: Jun 2009
Location: Italy
Distribution: Arch Linux
Posts: 8

Original Poster
Rep: Reputation: 0
Ok I dumped the command inside /etc/xdg/lxsession/LXDE/autostart, now it works fine. I've already followed the ArchLinux Wiki's istructions but it did not work and I still don't understand why, since I'm quite sure I did it correctly. I was even planning to install xfce, but with that nice autostart file I'll keep on improving my lxde experience Thank you!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Execute kerberos commands in C# tritonbash Linux - Server 0 05-07-2008 05:43 PM
why won't my crontab execute the commands? dannemil Linux - Newbie 4 02-12-2008 06:25 PM
Execute different commands at startup lucazorzi Linux - General 7 11-02-2007 08:46 AM
Shell won't execute commands.... frank320 Red Hat 6 03-17-2006 12:12 PM
how to execute commands on login k4zau Linux - Software 3 10-12-2003 02:52 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:14 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration