LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-30-2005, 02:58 PM   #1
chrismiceli
Member
 
Registered: Aug 2002
Posts: 349

Rep: Reputation: 31
xmodmap


I have xmodmap and I am trying to get my windows key working for Linux as Mod4, but it isnt' working here is my .xmodmaprc file
Code:
clear Mod4
keycode 116 = Super_R
keycode 115 = Super_L
add Super_L Mod4
add Super_R Mod4
and in my .xinitrc I have xmodmap ~/.xmodmaprc
I get these errors
Code:
xmodmap:  /home/michael/.xmodmaprc:3:  bad add modifier name 'super_l', not allowed
xmodmap:  /home/michael/.xmodmaprc:4:  bad add modifier name 'super_r', not allowed
xmodmap:  2 errors encountered, aborting.
Please could anyone help me
Thanks in advance
 
Old 07-30-2005, 03:29 PM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Not sure about the key values you assigned.
clear Mod4
keycode 116 = Super_R
keycode 115 = Super_L
add Super_L Mod4
add Super_R Mod4

My system is FC3 with KDE 3.4.2 running.

Just make sure you found the keycode of the keys using the ' xev ' utility.

For me I edit the /etc/X11/Xmodmap file. Then I added the following to it.
keycode 176 = XF86AudioRaiseVolume
keycode 174 = XF86AudioLowerVolume
keycode 178 = XF86WWW
keycode 236 = XF86Mail

Now once editted and save as root of course you can run the command ' xmodmap /etc/X11/Xmodmap ' to set it active.

Now the Raise and Lower values take over using the kmilo utility that is already running in KDE. Kmilo can be found in Control Center > KDE Components > Service Manager (Note requires root to change if needed). Now for the XF86WWW and XF86Mail I used the menu editor in KDE and at the bottom right hand corner of the program you wish to map the key too, you just hit the box called Shorcut Key there and then press the key to map it to. Really you can use any name that is listed in the below file location. But it is best to use one close to the action you are trying to use.

Now the XF86***** is defined in file:///usr/X11R6/include/X11/XF86keysym.h
Other info in file:///usr/X11R6/include/X11/keysymdef.h

How it works beyond this is more complicated than I can explain here.
 
Old 06-29-2006, 03:18 AM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: Debian Land
Posts: 1,339

Rep: Reputation: 83
I would like to exchange SHIFT_L + 1 and &
I tried xmodmap but could say to xmodmap both :
SHIFT and also 1 at same time ...


And to make two keys are the same time ??
shift + sthg
or
alt + otherkey
... ?
 
  


Reply


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
xmodmap help pitt30 Slackware 11 01-14-2005 04:54 AM
xmodmap snt Linux - Software 0 11-15-2004 08:59 AM
xmodmap ntilde Mandriva 0 07-27-2004 01:28 PM
loading .Xmodmap lrt2003 Linux - Newbie 2 06-13-2004 08:19 AM
modification to .Xmodmap butthead Programming 0 02-01-2002 08:50 AM


All times are GMT -5. The time now is 12:03 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration