openSUSE Forums > Install/Boot/Login » adding xmodmap to X startup

Go Back   openSUSE Forums > Install/Boot/Login
Forums FAQ Members List Search Today's Posts Mark Forums Read


Install/Boot/Login Questions about installation, login, boot issues, partitioning, file systems, software that runs at boot (GRUB, LILO, boot scripts)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-Nov-2009, 05:46
Student Penguin
 
Join Date: Dec 2008
Posts: 85
anoosh3000 hasn't been rated much yet
Default adding xmodmap to X startup

dears,

i have modified my keyboard and saved results in /etc/X11/xmodmap and i can use it successfully with:

Code:
xmodmap /etc/X11/Xmodmap
i can add this line to .bashrc to be run at LOGIN time, but what i want to do is to modify keyboard before loging in. is there any special script which i can ask X to run xmodmap in run level 5?

best ,

-- A.
Reply With Quote
  #2 (permalink)  
Old 06-Nov-2009, 08:20
hcvv's Avatar
Wise Penguin
 
Join Date: Jun 2008
Location: Netherlands
Posts: 1,898
hcvv 's reputation will be famous soon enoughhcvv 's reputation will be famous soon enoughhcvv 's reputation will be famous soon enough
Default Re: adding xmodmap to X startup

You mean you want it done for typing in your username/password in the xdm/gdm/kdm logon page?
__________________
Henk van Velden
Reply With Quote
  #3 (permalink)  
Old 06-Nov-2009, 08:26
Student Penguin
 
Join Date: Dec 2008
Posts: 85
anoosh3000 hasn't been rated much yet
Default Re: adding xmodmap to X startup

not absoulutely. actually i have added my laptop [lenovo SL300] Volume KeyCode to the file so, for instance, i can "mute" system before loging in when i am at a meeting or sth to avoid splash sound. therefor the file has to be read by xmodmap before login page.
Reply With Quote
  #4 (permalink)  
Old 06-Nov-2009, 08:50
hcvv's Avatar
Wise Penguin
 
Join Date: Jun 2008
Location: Netherlands
Posts: 1,898
hcvv 's reputation will be famous soon enoughhcvv 's reputation will be famous soon enoughhcvv 's reputation will be famous soon enough
Default Re: adding xmodmap to X startup

Quote:
Originally Posted by anoosh3000 View Post
not absoulutely. actually i have added my laptop [lenovo SL300] Volume KeyCode to the file so, for instance, i can "mute" system before loging in when i am at a meeting or sth to avoid splash sound. therefor the file has to be read by xmodmap before login page.
I see what you mean. But I think you are on the wrong road to a solution. There is no xserver running at that moment so the xmodmap has nowhere to go.

I would switch off the logon/logoff sounds for good in KDE/Gnome. What are they good for?
__________________
Henk van Velden
Reply With Quote
  #5 (permalink)  
Old 06-Nov-2009, 09:04
Student Penguin
 
Join Date: Dec 2008
Posts: 85
anoosh3000 hasn't been rated much yet
Default Re: adding xmodmap to X startup

that was just an example! When kdm is loaded there should be definitely an X session running, isn't it?

Is there any X startup script so i can append xmodmap to that and see the results?
Reply With Quote
  #6 (permalink)  
Old 06-Nov-2009, 09:44
hcvv's Avatar
Wise Penguin
 
Join Date: Jun 2008
Location: Netherlands
Posts: 1,898
hcvv 's reputation will be famous soon enoughhcvv 's reputation will be famous soon enoughhcvv 's reputation will be famous soon enough
Default Re: adding xmodmap to X startup

I just checked. Yes, /usr/bin/Xorg running as child of kdm, even if I am loged out.

I can not find in man Xorg any reference of such a startup file.

I found the directory /etc/X11/xinit/ which has some startup scripts, but I think tthese are for copying to users .xinitrc etc. You could try to test there (but first copy the originals ).

Maybe someone with better knowledge then I have might show up.
__________________
Henk van Velden
Reply With Quote
  #7 (permalink)  
Old 06-Nov-2009, 19:04
Parent Penguin
 
Join Date: Aug 2008
Location: Brazil
Posts: 554
brunomcl hasn't been rated much yet
Default Re: adding xmodmap to X startup

From man xmodmap:

Quote:
The xmodmap program is used to edit and display the keyboard modifier map and keymap table that are used by client applications to convert event keycodes into keysyms. It is usually run from the user's session startup script to configure the keyboard according to personal tastes.
In kde, i'd put it in Autostart. Gnome has something like it, I believe.
Reply With Quote
  #8 (permalink)  
Old 07-Nov-2009, 03:41
hcvv's Avatar
Wise Penguin
 
Join Date: Jun 2008
Location: Netherlands
Posts: 1,898
hcvv 's reputation will be famous soon enoughhcvv 's reputation will be famous soon enoughhcvv 's reputation will be famous soon enough
Default Re: adding xmodmap to X startup

As suggested by brunomcl, run it at the start of your desktop. The only thing still staying to depress is the logon jingle and that can be switched of on KDE (and most probably also in Gnome).
__________________
Henk van Velden
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2