LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-26-2004, 03:26 AM   #1
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Rep: Reputation: 30
Load xmodmap at startup


Hey guys.
Just wondering if anyone knows how to get xmodmap to load at startup. I'm running kde 3.2 with kdm as the xwindow manager. When I had fedora on my laptop and I had got some keys working with xmodmap, it used to start at bootup, but it doesnt seem to load at startup with debian and kdm. I saw something about gdm 2.2 not having backwards compatability with it, and was just wondering if it was the same with kde. When I type xmodmap ~./xmodmap, from the terminal, then my keys work, but after a reboot, the xmodmap file musnt get read, and the keys dont work. Probably a bit of a newb question, but I cant seem to find an answer that is kde or debian specific.
 
Old 08-26-2004, 10:15 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Re: Load xmodmap at startup

Quote:
Originally posted by short101
Hey guys.
Just wondering if anyone knows how to get xmodmap to load at startup. I'm running kde 3.2 with kdm as the xwindow manager. When I had fedora on my laptop and I had got some keys working with xmodmap, it used to start at bootup, but it doesnt seem to load at startup with debian and kdm. I saw something about gdm 2.2 not having backwards compatability with it, and was just wondering if it was the same with kde. When I type xmodmap ~./xmodmap, from the terminal, then my keys work, but after a reboot, the xmodmap file musnt get read, and the keys dont work. Probably a bit of a newb question, but I cant seem to find an answer that is kde or debian specific.
Try putting something like this near the bottom of /etc/init.d/bootmisc.sh file.

Code:
## Added by me to load xmodmap
if [ -f ~/.xmodmap ]; then
    source ~/.xmodmap
fi
It may work if you just put it into your ~/.bash_profile it should be read on login.
 
Old 08-27-2004, 08:09 AM   #3
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Original Poster
Rep: Reputation: 30
Thanks happytux, but option one didnt work, putting it in the /bootmisc.sh file. What is the full path for the bash profile?
 
  


Reply



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
load module at startup hobz Linux - Hardware 3 03-08-2005 07:44 PM
Load Ramdisk at Startup mooreted Mandriva 4 02-06-2005 01:50 PM
load module at startup alaios Linux - General 1 03-31-2004 11:40 AM
how to load modules at startup sasquash Fedora 1 11-18-2003 08:35 PM
Load on Startup ShadowPeo Linux - Newbie 1 02-01-2003 07:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

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