Dima Asked: 2011-02-23 13:41:06 +0800 CST2011-02-23 13:41:06 +0800 CST 2011-02-23 13:41:06 +0800 CST How do I map SysReq to a key on my MacBook keyboard? 772 My Macbook laptop keyboard doesn't have a SysReq key. Can I change an existing key to act like SysReq? keyboard 1 Answers Voted Best Answer desgua 2011-04-08T18:46:34+08:002011-04-08T18:46:34+08:00 This is an easy task once you know how to do it. Check the keycode of yours key. Run this program at terminal. xev It will open a blank window, click on your key and then check the terminal output, For example, when I press k the terminal shows me: KeyRelease event, serial 34, synthetic NO, window 0x2600001, root 0x286, subw 0x0, time 1577277172, (-63,525), root: (902,565), state 0x10, keycode 45 (keysym 0x6b, k), same_screen YES, XLookupString gives 1 bytes: (6b) "k" XFilterEvent returns: False From which I know the keycode for my k key is 45. Change them as you like creating this file: gedit ~/.Xmodmap Its contents should look like this example: keycode 45 = Print Sys_Req Print Sys_Req Then run (or reboot): xmodmap ~/.Xmodmap
This is an easy task once you know how to do it.
Check the keycode of yours key. Run this program at terminal.
It will open a blank window, click on your key and then check the terminal output,
For example, when I press k the terminal shows me:
From which I know the keycode for my k key is 45.
Change them as you like creating this file:
Its contents should look like this example:
Then run (or reboot):