LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-16-2011, 05:15 AM   #1
saavedra29
Member
 
Registered: Aug 2010
Location: Greece
Distribution: slackware
Posts: 42

Rep: Reputation: 3
Remapping keyboard - xmodmap doesn't work


Hello, i have slackware 13.37-64 bit with xfce.
I have a "microsoft wired keyboard 600" keyboard and want to remap it to use the right win key as ctrl. With xev i see that the keycode for the specific win key is 134. Then i run
Code:
xmodmap -e "keycode 134 = Control_L"
but nothing changes. Even if i manually configure the .Xmodmap file in my /home i see no change at all. I have searched through the net but have found no other solution.
Can you help?

Last edited by saavedra29; 06-16-2011 at 12:39 PM.
 
Old 06-16-2011, 10:31 AM   #2
saavedra29
Member
 
Registered: Aug 2010
Location: Greece
Distribution: slackware
Posts: 42

Original Poster
Rep: Reputation: 3
I run xmodmap -pke and it shows that it has changed. But it doesn't work.
By the way, when i tried to change it with a letter, for example "e" it worked. The problem is with the ctrl key.
 
Old 06-16-2011, 10:52 AM   #3
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 687
Blog Entries: 1

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Hi,

Try adding 3 lines below to ~/.Xmodemap

remove Lock = Caps_Lock
keysym Caps_Lock = Control_L
add Control = Control_L

That automatically turns CapsLock into another Ctl key (at least for me) when using "startx"

Or you can process the file using:
xmodmap ~/.Xmodmap

HTH
John
 
Old 06-16-2011, 12:22 PM   #4
saavedra29
Member
 
Registered: Aug 2010
Location: Greece
Distribution: slackware
Posts: 42

Original Poster
Rep: Reputation: 3
jmccue you gave me a very good example since i have no ideas about this.
So i configured my .Xmodmap as
Code:
remove Mod4 = Super_R
keysym Super_R = Control_R
add control = Control_R
and it worked.
Thank you very much!
 
  


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
Keyboard doesn't work right click on mouse doesn't work ramblinrick Linux Mint 2 10-15-2010 01:10 AM
Remapping keys using xmodmap - "home" key leeko Linux - Newbie 0 06-28-2008 01:31 PM
keyboard remapping? FirebirdV0273 Linux - Hardware 2 05-20-2006 10:27 AM
Keyboard Remapping under KDE unihiekka Linux - Hardware 5 10-09-2005 05:01 PM
keyboard remapping bicolano53 Linux - Newbie 1 09-21-2004 09:03 PM

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

All times are GMT -5. The time now is 07:27 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