[SOLVED]Remap my menu key in Xorg

Hi, everyone!
I have a menu key of no use on my keyboard, and I want to use it. So I decide to remap it. I want to do this mapping:
menu + 1 => F1
menu + 2 => F2
menu + 3 => F3
menu + 4 => F4
menu + 5 => F5
menu + 6 => F6
menu + 7 => F7
menu + 8 => F8
menu + 9 => F9
menu + 0 => F10
menu + - => F11
menu + + => F12
menu + w => ArrowUp
menu + d => ArrowDown
menu + a => ArrowLeft
menu + d => ArrowRight
menu + j => PageDown
menu + k => PageUp
menu + m => End
menu + , => Home
This means if I press menu key and 1 at once, it equals to F1. It seems that Xmodmap can't be suitable because it can't map combination keys. Do you have any idea of the way to do it?
Thank you.
Last edited by Maxfan Zone (2013-06-30 00:33:49)

Hi, I made some progress, the problem is partly solved.
In ~/.Xmodmap:
xmodmap -e "add mod3 = Menu"
In ~/.config/sxhkd/sxhkdrc:
# don't take action if I press Menu
Menu
true
mod3 + 1
xdotool key --clearmodifiers F1
mod3 + 2
xdotool key --clearmodifiers F2
mod3 + 3
xdotool key --clearmodifiers F3
mod3 + 4
xdotool key --clearmodifiers F4
mod3 + 5
xdotool key --clearmodifiers F5
mod3 + 6
xdotool key --clearmodifiers F6
mod3 + 7
xdotool key --clearmodifiers F7
mod3 + 8
xdotool key --clearmodifiers F8
mod3 + 9
xdotool key --clearmodifiers F9
mod3 + 0
xdotool key --clearmodifiers F10
mod3 + minus
xdotool key --clearmodifiers F11
mod3 + equal
xdotool key --clearmodifiers F12
mod3 + w
xdotool key --clearmodifiers Up
mod3 + s
xdotool key --clearmodifiers Down
mod3 + a
xdotool key --clearmodifiers Left
mod3 + d
xdotool key --clearmodifiers Right
mod3 + j
xdotool key --clearmodifiers Page_Down
mod3 + k
xdotool key --clearmodifiers Page_Up
mod3 + m
xdotool key --clearmodifiers End
mod3 + comma
xdotool key --clearmodifiers Home
And run sxhkd(it's in AUR), see it's working.
Note some part also need fixing.
Greatly thanks for WonderWoofy, Trilby and 2ManyDogs.
EDIT: Now it is completely solved.
Last edited by Maxfan Zone (2013-06-30 00:30:08)

Similar Messages

  • Remap "menu" key in textmode

    Hi all,
    Recently I got a new laptop and installed arch on it, but one big nuisance it has is its keyboard: the damn thing doesn't have a "/?" key, one has to use AltGr+q and AltGr+w to get those, which is a big problem for linux users. (I have posted this under "Laptop Issues" because it seems to be a growing trend in the laptop world...)
    So I decided to remap the menu key to have a decent slash key, and I know how to do it in Xmodmap, but I would really like a solution that would work in console mode as well.
    So, looking at my /usr/share/kbd/keymaps/i386/qwerty/br-abnt2.map.gz, I added the folowing lines there
    keycode 135 = slash question degree
    control keycode 135 = Delete
    alt keycode 135 = Meta_slash
    I'm using keycode 135 because that is what xev told me the menu key is.
    Also, in my rc.conf I have KEYMAP="qwerty/br-abnt2".
    Then I reboot and log into console mode, but it doesn't work. What am I doing wrong?
    Thank you!
    EDIT: typo
    Last edited by vitoreiji (2011-11-27 11:59:00)

    This works for me:
    # echo keycode 58 = slash question degree | /usr/bin/loadkeys -
    It can be put to /etc/rc.local to make it permanent.
    Last edited by Markus00000 (2011-11-27 14:17:29)

  • Problems with the BBkey (also known as the menu key)

    Sometimes when I am in an app and want to click on one of the items in the menu list (e.g., delete), when I click on the menu key, what pops up are some of the icons from the home page.  (I am getting really tired of looking at that little penguin....).  If i persist, I can usually get the menu option to pop up, but it's annoying.  I am pretty sure it is a software problem.  I had this problem after some time on my first Tour.  I had to replace that because of other issues.  I used the Device Switch Wizard to transfer everything, so I guess it also transferred whatever is causing this issue. 
    Is anyone else having this problem?  Any ideas about what to do?  I don't want to re-install the OS-- I'd rather put up with the problem.  Thanks.
    Liz
    Solved!
    Go to Solution.

    Hi again!
    The BBKey/Menu key has two functions...
    1) To bring up a context-sensitive menu for the app you are in
    2) To bring up the app-switcher ribbon (a list of all of your currently running apps so that you can quickly change to a different app)
    The difference is how long you hold the key down. For 1, it's a quick press and release. For 2, it's a hold down. Sometimes, it gets it wrong, but with practice you will be able to get what you want most of the time (not 100% though...I still get the wrong result sometimes).
    Hope that helps!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • E71 menu key freezes

    I purchased the e71 two months back and had everything working perfectly until of lately the menu key and the home key freeze. When pressed all it does is blink and the only way to get the keys working again is to reboot it. this is very irritating as otherwise it is a great phone and extremely good to use.
    If it is a software problem; I would sincerely request nokia to come out with an update for the e71, as while trying to hunt for a solution to the above on the internet, I have found quite a few e71 users complaining of the same problem.
    Solved!
    Go to Solution.

    Today I phoned Nokia (call reference 1-2379216082) and was told they know about this problem & are working on a solution.
    My phone has been to my service provider 3 times and my emails to Nokia have not been directly responded to. 
    Nokia are still selling the E71 and do not have a solution to this problem!

  • Multimedia Menu Key not working (N95)

    I have problem in the multimedia menu key (N95), it is not working, i pressed the key more than once, but the multimedia screen didnot appear, although it was working perfect from 2 days, Can anyone tells me how to solve this problem. Thanks

    16-May-200704:01 PM
    capbadge wrote:
    Thanks for confirming my suspicion.
    It's what Nokia will do about it now and how do we alert them?
    Well this is an official Nokia forum and there are representatives that look over the forum so I'm sure it'll be picked up as an issue and worked upon.
    Can someone do a check for me please as my multimedia key started working for me again, and I don't recall restarting it (or it rebooting) between the alarm going off and the multimedia key starting to work (unfortunately I haven't been able to find an "uptime" tool for the Symbian 60 environment).
    Could you close all open applications on your phone, then goto Tools->Memory card and backup the contents of your phone onto your memory card, and THEN try the multimedia key to see whether it starts working again ?
    If it does, then I think I know what is happening. I've noticed that if I have MobiPocket open and do a backup of my phone contents onto memory card, what the phone does is actually close MobiPocket down so that it hasn't got any files open, then back everything up, then re-opens it for me. If this is the case, and the multimedia key starts working again for other users after carrying this action out, then it may be that the backup operation is closing a process which has been left running in the background of the phone once a recurring alarm has gone off.
    Regards,
    Edward

  • Escape and menu keys

    Sorry , meant escape and menu keys

    ... What about them?
    1). Please thank those who help you by clicking the beside the 'Reply' button.
    2). If your issue has been solved, please resolve it by marking "Accept as Solution" on the correct post!
    3). Remember to have fun! We are all in this together!
    4). Follow me on

  • Application Key (Menu Key) (Right Click Button)

    Hi,
    I have an HP Pavillon Notebook 13-b200nt model. But the notebook doesn't have "application (menu) key which is used instead of right click of mouse.
    Is it possible to change any key function as rihgt click option? Or as far as i know "shift + F10" is a short cut of right click, may i create another short cut?
    Thanks in advance,

    Hi there @Memo1 
    Welcome to the HP Support Forums! It is a great place to find the help you need, both from other users, HP experts and other support personnel.
    There are several different keyboard mapping tools available on the internet. A quick google search will find several that you can investigate.
    Malygris1
    I work on behalf of HP
    Please click Accept as Solution if you feel my post solved your issue, it will help others find the solution.
    Click Kudos Thumbs Up on the right to say “Thanks” for helping!

  • Is there another way of getting to the menu, without the menu key!

    Hi Everyone
    I am embarrassed to say that I managed to drop my blackberry in a cup of tea! Thankfully, it dried out eventually. But, the menu key will now not work
    Is there a way of accessing the menu (things such as pics, clock, games etc) without using the menu key itself?
    Thanks!
    Vix

    How long, how many days did you let it dry?
    Plus if there was sugar or sweetener in the cup, it could leave gunk or something in the device, you might actually need to use rubbing alcohol to clean the contacts.
    Until you decide that....
    1. Remove the battery immediately!! Do not attempt to turn on your BlackBerry.
    2. Let the device dry in a warm, dry place for 3 to 5 days* (see below)
    3. DO NOT "check it each day" by placing the battery in. Leave it be to dry completely. This takes time. Replacing the battery to check it can only damage it more (moisture + electrical current = disaster).
    3. If the device is warm after the drying period, allow it to cool to room temperature before placing the battery back in.
    *Suggestions on drying your BlackBerry in a warm place (open, with the battery out):
    Place the BB in a container of dry UNcooked rice, and then you might also place it in any of the locations mentioned below.
    On top of any dry heat emitting electronic component: TV cabinet or CRT, LCD, cable TV/Satellite converter box or plasma monitor
    On the dashboard of your car on a sunny day
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Menu key not working on N8

    My menu key has stopped working all of a sudden.
    The key is recognised as when it is pressed when the phone is locked the on screen unlock option flashes up. I just can't access any settings, apps etc.
    Any ideas?
    Solved!
    Go to Solution.

    tangerine wrote:
    OK, so when you press the unlock icon that has flashed up, does the phone not select the homescreen?
    Yes, it does. I have an update though. I left the phone switched off all night and when I restarted it this morning the button is working again! Very confusing as I restarted it countless times yesterday after the problem first emerged.
    However, I now have another problem with the unit though where the battery is only lasting about 4 hours. There is an incredible amount of heat on the back of the phone.
    I will post it as a new thread....
    Ilove nokias but they do have a habit of behaving like this. Frustrating.

  • Menu key for the bb protect app is not working

    Hi guys,
    For the blackberry protect app the menu option is not working ,after entering in to the bkackberry protect app in the mobile and iff we press menu key it shows settings ,backup ,update options but now its not showing any details ....else bb protect app is undermaintenance .
    Please help me in fixixng
    Solved!
    Go to Solution.

    Hi ,
    Yes ,I have done the same but the menu option is working once opened the. Bb protect app.

  • N97 menu key fading in and fading out every 10s

    Everytime I stop using my N97 and it fades out, the meny key start blink every 10s.
    But it is not a blink, it is a fade in and fade out.
    And every 10s the menu key do this.
    Does anyone here knows what is the deal with this menu key blinking?
    Thank you. 
    Solved!
    Go to Solution.

    its called the breathing light - yeah that is right it is a feature so you can tell your phone is alive.
    You can turn it on or off in your profile. 
    I love my purple screen, 1/2 day battery, sketchy touch screen and $800 price tag - I call it my Lumia 900

  • Remap your fn key?

    I was wondering if it would be possible to remap my fn key to control for gaming.

    Keyboard shortcuts allows you to map a +menu item+ to a keystroke (not including a modifier key by itself). Although the other modifier keys can be remapped (to allow for using Windows keyboards) the Function key can't. There may be third-party programs which can do this.

  • Menu key no longer working

    Since I first used my Nike+ with my ipod a few weeks ago the menu key no longer works.
    Can anyone help please. I use my ipod all the time and im desperate for it to work again

    mdcoley wrote:
    Cheers! Store is now working. I didn't quite do things in your order as your post came in after I started experimenting. This is what I did:
    Three-finger reset again.
    Installed the .sisx file above (cwrt core).
    Installed the Nokia Store from Betalabs (with Qt 4.7.4).
    Read your post, so deleted those two files you mentioned from installated apps.
    Installed earlier version of Nokia Store from your link.
    Ran this, which prompted me to upgrade.
    Can now log in without the black screen.
    It seems remarkable that doing a factory reset means the phone doesn't work.
    That's the question;Nokia advise to never do a 3 finger hard reset.this process delete some files that isn't recoverable even reinstall software.
    I have a C7 as well and already perform a 3 finger hard reset,but a software reinstall put it back as 2out of the box".don't know why this do not works in Nokia 701 
    At least you have the store back again right?
    As far as i know it should be missing in your phone,the photo and video editor right?
    That's why i took mine to Nokia Care Center,they put the phone as out of  the box.
    Nokia Lumia 820
    Nokia 701

  • Nokia e71 menu key not working

    i recently updated the firmware of my phone, connecting to the computer using ovi. Now the problem is, when the menu key (left selection and home button) is pressed the menu doesnt open. This doesnt happen in the begining, but after some time it happens, and then onwards the menu doesnt open. Please give me a solution.

    Reset the E71. Dial *#7370# 12345 reformat, you'll lose all data. Make a backup first and restore without the settings.
    ‡Thank you for hitting the Blue/Green Star button‡
    N8-00 RM 596 V:111.030.0609; E71-1(05) RM 346 V: 500.21.009

  • Left shift key remapped into alt key

    Hi Everybody
    The left shift key of my Macbook air started to work exactly like the alt key, like it was remapped.
    (the alt key works normally)
    The solution of the problem might be simple but I couldn't find any way to change the behaviour in Maverick.
    Can anyone help?
    Thanks
    and14

    Try a restart.
    Do a backup, using either Time Machine or a cloning program, to ensure files/data can be recovered. Two backups are better than one.
    Try setting up another admin user account to see if the same problem continues. If Back-to-My Mac is selected in System Preferences, the Guest account will not work. The intent is to see if it is specific to one account or a system wide problem. This account can be deleted later.
    Isolating an issue by using another user account
    If the problem is still there, try booting into the Safe Mode using your normal account.  Disconnect all peripherals except those needed for the test. Shut down the computer and then power it back up after waiting 10 seconds. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. When you reboot normally, the initial reboot may be slower than normal. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart by using the application un-installer. For each disable/delete, you will need to restart if you don't do them all at once.
    Safe Mode
    Safe Mode - About
    Do you have another keyboard you could test with?

Maybe you are looking for

  • How do I see, organise and delete unsorted bookmarks? I am using Firefox 3.6.6 on a Mac with OS X 10.5.8

    How do I see, sort and delete unsorted bookmarks in Firefox 3.6.6? Using Mac OS X 10.5.8. All bookmarks not in folders already seem to be in a lump called unsorted bookmarks in the Library but I can't open this to see them. I have deleted some from t

  • NFL Redzone, can I stream/hook  it to my TV?

    I have an Iphone 4s and I have the NFL redzone and am wondering if there is a way to hook it up to my HDTV. I have not bought an adapter yet and do not want to unless someone else has had luck with NFL redzone. I have seen that netflix works.

  • Dahdi.service script error after reboot

    Hi! Setup DAHDI drivers. Created a service-file as follows: [Unit] Description = DAHDI configuration script. After = network.target [Service] Type = forking WorkingDirectory = / home ExecStart = / usr / bin / dahdi_cfg-vvvv ExecStop = / usr / bin / d

  • Mirror Image Printing - Photosmart Premium C410A

    How can I print the mirror image on a Photosmart Premium C410A for a t-shirt transfer?

  • PSA Data Load

    Hi, I am trying to load Historical data from one of the Association model ( Data Mining) in to a DSO, But am getting error in the PSA stage. Getting an error as MISSING MESSAGES: SELECTION COMPLETED. I am Struck now, not able to understand. what to d