View previous topic :: View next topic |
Author |
Message |
sobers_2002 Veteran
Joined: 16 Mar 2004 Posts: 1128
|
Posted: Sun Jun 18, 2006 11:26 am Post subject: keyboard map[SOLVED] |
|
|
HI all,
is there any way to change the keyboard layout on a sun machine?? Like the interchanging of the caps and ctrl key. The escape key etc.
thanks
Saurabh _________________ Pdict - dockable dictionary client for linux
FREE97WIN: Use this code on Dreamhost and you get $97 off !!
Last edited by sobers_2002 on Sun Jun 18, 2006 5:32 pm; edited 1 time in total |
|
Back to top |
|
|
Ferris Retired Dev
Joined: 13 Jan 2003 Posts: 426 Location: N. Virginia (USA)
|
Posted: Sun Jun 18, 2006 4:37 pm Post subject: |
|
|
Yes. If you are talking about running under X, make sure you have x11-apps/xev and x11-apps/xmodmap (if you are using xorg-x11-7). Then, for X, look at the man pages for xev and xmodmap. You can see what the keys are called using xev, and then use xmodmap to redefine them. For example, here's one I use (under X) on a kernel-2.6 SB1000:
xmodmap -e 'keycode 113 = Alt_R'
Now, if you are not under X, you can still do it, in a similar fashion:
Look at the documentation for showkey, getkeycodes, and setkeycodes. I can't be more explicit, I'm afraid, because I don't have any examples lying around. |
|
Back to top |
|
|
sobers_2002 Veteran
Joined: 16 Mar 2004 Posts: 1128
|
Posted: Sun Jun 18, 2006 5:32 pm Post subject: |
|
|
thanks a lot! that does it
Also, for anyone who needs it, I found a graphical frontend to this application called xkeycaps.
it's in portage, so enjoy! _________________ Pdict - dockable dictionary client for linux
FREE97WIN: Use this code on Dreamhost and you get $97 off !! |
|
Back to top |
|
|
sobers_2002 Veteran
Joined: 16 Mar 2004 Posts: 1128
|
Posted: Mon Jun 19, 2006 9:03 am Post subject: |
|
|
now even though the problem is solved, i sort of got stuck
everything except the interchange of caps and control is working. so if som1 could guide me with that, it'd be great. I have put the things in .Xmodmaps file. The new escape key, backspace etc are working. Even xev is recognizing the change. But the working result hasn't changed. So if some1 could help??
thanks
Saurabh _________________ Pdict - dockable dictionary client for linux
FREE97WIN: Use this code on Dreamhost and you get $97 off !! |
|
Back to top |
|
|
Ferris Retired Dev
Joined: 13 Jan 2003 Posts: 426 Location: N. Virginia (USA)
|
Posted: Mon Jun 19, 2006 4:19 pm Post subject: |
|
|
I just tried to remap Shift lock onto Control (Type 6 Kbd, kernel 2.6.15-gentoo-r4-U60-2x450, on U60) and saw exactly what you are reporting. My guess is that a few keys (like CAPS/Shift_Lock) are hardwired into the keyboard itself. But as I say, this is just a guess. |
|
Back to top |
|
|
sobers_2002 Veteran
Joined: 16 Mar 2004 Posts: 1128
|
Posted: Tue Jun 20, 2006 4:36 am Post subject: |
|
|
got it solved!!!!!!!
Code: | remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L
|
Remove the keymapping in the .Xmodmap file for the keys, and add the above thing to the file. And bingo!! Things work!
yay! _________________ Pdict - dockable dictionary client for linux
FREE97WIN: Use this code on Dreamhost and you get $97 off !! |
|
Back to top |
|
|
Ferris Retired Dev
Joined: 13 Jan 2003 Posts: 426 Location: N. Virginia (USA)
|
Posted: Tue Jun 20, 2006 4:05 pm Post subject: |
|
|
Interesting; you've taught me something. Thanks for posting that. |
|
Back to top |
|
|
|