Help: modfy keyboard layout in ubuntu
2 posters
IITDU Forum :: TechTalks :: Ubuntu
Page 1 of 1
Help: modfy keyboard layout in ubuntu
Some of you may have seen that the left-shift button of my laptop keyboard has been broken. So I wanted to change the chaps lock button to left-shift. I googled a lot but there is no output.
Can you help me?
Can you help me?
BIT0102-Mohaimin- Programmer
- Course(s) :
- BIT
Blood Group : B+
Posts : 415
Points : 715
Re: Help: modfy keyboard layout in ubuntu
I went through the manuals and found the way.
but I messed up my own keyboard and I can't reverse it
You mean you want to use the caps lock as the left shift button right?
I know a way. its xmodmap. but as I can not reverse the affect for now, maybe you should study it yourself first before trying it
Edit:
Found it.
To reset it, use
but I messed up my own keyboard and I can't reverse it
You mean you want to use the caps lock as the left shift button right?
I know a way. its xmodmap. but as I can not reverse the affect for now, maybe you should study it yourself first before trying it
Edit:
Found it.
To reset it, use
- Code:
setxkbmap
Last edited by LordAmit on Mon Oct 25, 2010 12:30 am; edited 1 time in total
Re: Help: modfy keyboard layout in ubuntu
Forget the first command.
Mohaimin, we need to find the keycode of the caps lock and left shift on your laptop.
http://www.ryancooper.com/resources/keycode.asp
Go there.
Let it load totally.
After it loads,
press the left shift key.
it will show a keycode.
press caps lock.
It will show another keycode.
give them here.
Mohaimin, we need to find the keycode of the caps lock and left shift on your laptop.
http://www.ryancooper.com/resources/keycode.asp
Go there.
Let it load totally.
After it loads,
press the left shift key.
it will show a keycode.
press caps lock.
It will show another keycode.
give them here.
Re: Help: modfy keyboard layout in ubuntu
I am sorry, did you post everything I need?
BIT0102-Mohaimin- Programmer
- Course(s) :
- BIT
Blood Group : B+
Posts : 415
Points : 715
Re: Help: modfy keyboard layout in ubuntu
Umm, no actually. that's why I said we should do this together.
Hmm.. the thing we need is xmodmap.
it can assign the keycode of one key to another key.
To do that, we need to information, keysym and keycode.
open terminal, type xev, and press enter. it will show lots of things and a small window.
When it stops, press caps lock key once and release it. it will generate some lines.
Do the same for Left Shift.
Then close that small window. Find the lines generated by caps and shift key. post them here.
They will look like this:
Hmm.. the thing we need is xmodmap.
it can assign the keycode of one key to another key.
To do that, we need to information, keysym and keycode.
open terminal, type xev, and press enter. it will show lots of things and a small window.
When it stops, press caps lock key once and release it. it will generate some lines.
Do the same for Left Shift.
Then close that small window. Find the lines generated by caps and shift key. post them here.
They will look like this:
- Code:
KeyRelease event, serial 36, synthetic NO, window 0x9400001,
root 0xae, subw 0x0, time 12753926, (182,-37), root:(185,460),
state 0x2, keycode 66 (keysym 0xffe5, Caps_Lock), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 36, synthetic NO, window 0x9400001,
root 0xae, subw 0x0, time 12756289, (182,-37), root:(185,460),
state 0x2, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x9400001,
root 0xae, subw 0x0, time 12756456, (182,-37), root:(185,460),
state 0x3, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
Similar topics
» Ubuntu 11.04 - Discussion
» games for ubuntu..........
» provat layout - phonetic like way to write bangla...
» Using Bangla in Ubuntu
» ubuntu vs kubuntu...
» games for ubuntu..........
» provat layout - phonetic like way to write bangla...
» Using Bangla in Ubuntu
» ubuntu vs kubuntu...
IITDU Forum :: TechTalks :: Ubuntu
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Tue Sep 29, 2015 2:45 pm by Sophiawood
» Cisco EHWIC SFP/GE WAN Card
Mon Sep 07, 2015 11:08 am by Sophiawood
» Huawei S1700-28GFR-4P-AC Price
Thu Jun 25, 2015 2:31 pm by Sophiawood
» teach yourself C++ / Herbert Schildt Solutions
Wed Jun 03, 2015 1:52 pm by Abdullah Al Noman
» teach yourself c by herbert schildt pdf
Wed May 13, 2015 11:01 pm by Raquib Ridwan
» ASA 5506X With Firepower ASA5506-K9
Fri Apr 10, 2015 4:31 pm by Sophiawood
» New Trends in Deal Business
Tue Feb 03, 2015 9:38 pm by nersoa
» PoE Power Allocation for WS-C2960S-24PS-L
Wed Nov 05, 2014 11:12 am by Sophiawood
» How to cure back pain
Fri Oct 31, 2014 7:15 pm by Bergen Guildford