Remaping some keys with loadkeys and xmodmap

Me again.
I have a EEEPC 1005HA and I really don't like to press the Fn key to reach the HOME and END keys and the extreme position of DELETE. I also don't like SHIFT+7 for such a common symbol as "/". For all these reasons, I devised this scheme for the virtual consoles:
loadkeys -q /usr/local/share/kdb/keymaps/personal.map
in my /etc/rc.local script, with
keycode 97 = Remove
keycode 119 = Find
keycode 99 = Select
keycode 127 = F70
string F70 = "/"
inside personal.map.
All this made this replacements:
Pause --> HOME
PrintScreen --> END
Right Ctrl --> DELETE
MENU --> "/"
All this works fine... but I get strange results when I use xmodmap for doing the same inside Xorg. This is my ".Xmodmap" file:
keycode 127 = Find
keycode 107 = Remove
keycode 105 = Select
Strange results:
1) HOME (ex-Pause) and END (ex-PrintScren) work fine inside urxvt, but they do not work in firefox nor geany.
2) DELETE (ex-right control) works in all of them but with no key repetition (I have to release the key in order to use it again).
3) (Not strange) I don't know how to make the replacement for the menu key
Any idea?
Thanks in advance.
EDIT: Improved the title.
Last edited by falbani (2010-02-03 02:44:13)

falbani wrote:3) (Not strange) I don't know how to make the replacement for the menu key
Open a console, launch xev, set focus to the newly created window, press the menu key and finally inspect the console for the keycode.
And here is how what you should be looking for looks like:
KeyPress event, serial 27, synthetic NO, window 0x1600001,
root 0x122, subw 0x0, time 5908324, (168,173), root:(169,194),
state 0x0, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 27, synthetic NO, window 0x1600001,
root 0x122, subw 0x0, time 5911343, (168,173), root:(169,194),
state 0x40, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

Similar Messages

  • I am not able to download ITunes. I had some problems with ITunes and had to uninstall but now when I reinstall iTunes after I click on download iTunes and save the File, I get this message"Thank you for downloading iTunes" and nothing else happens. I don

    I had some problems with ITunes and had to uninstall but now when I reinstall iTunes after I click on download iTunes and save the File, I get this message"Thank you for downloading iTunes" and nothing else happens. I don't see any thing else. Now not sure what else I have to do.
    Thanks,
    Ranjit

    See the further information area of Troubleshooting issues with iTunes for Windows updates.
    tt2

  • I pressed  some keys in iPhoto and the picture "icons" shrunk. How to get them back to their original larger size?

    I pressed  some keys in iPhoto and the picture "icons" shrunk. How to get them back to their original larger size?
    I read another post about this that suggested restoring preferences, but I don't know how to do this. I don't want to re-install iPhoto for sure.

    My bad. I didn't see the slider lower right (it was mentioned in the reply).
    Now can somebody tell me how to delete questions

  • Hi! Everyone, I have some problems with JOIN and Sub-query; Could you help me, Please?

    Dear Sir/Madam
    I'm a student who is interested in Oracle Database and
    I have some problems with JOIN and Sub-query.
    I hope so many of you could help me.
    if i use JOIN without sub-query, may it be faster or not?
    SELECT field1, field2 FROM tableA INNER JOIN tableB
    if i use JOIN with sub-query, may it be faster or not?
    SELECT field1,field2,field3 FROM tableA INNER JOIN (SELECT field1,field2 FROM tableB)
    Thanks in advance!

    Hi,
    fac30d8e-74d3-42aa-b643-e30a3780e00f wrote:
    Dear Sir/Madam
    I'm a student who is interested in Oracle Database and
    I have some problems with JOIN and Sub-query.
    I hope so many of you could help me.
    if i use JOIN without sub-query, may it be faster or not?
    SELECT field1, field2 FROM tableA INNER JOIN tableB
    if i use JOIN with sub-query, may it be faster or not?
    SELECT field1,field2,field3 FROM tableA INNER JOIN (SELECT field1,field2 FROM tableB)
    Thanks in advance!
    As the others have said, the execution plan will give you a better idea about which is faster.
    If you're trying to see how using (or not using) a sub-query affects performance, make the rest of the queries as similar as possible.  For example, include field3 in both queries, or ignore field3 in both queries.
    In this particular case, I guess the optimizer would do the same thing either way, but that's just a guess.  I can't see your execution plans.
    In general, simpler code is faster, and better in other ways, too.  In this case
    tableB
    is simpler than
    (SELECT field1, field2  FROM tableB)
    Why do you want a sub-query in this example?

  • Need some help with cfoutput and a tag

    hey there,
    got meself into some issues with <a> and <cfoutput> tags.
    Problem:
    myResult = <a href="http://www.mysite.co.uk" rel="nofollow">mysite</a>
    <cfoutput>#myResult#</cfoutput> outputs "<a href="http://www.mysite.co.uk" rel="nofollow">mysite</a>" (surprise isn't it?)
    now is there any way to output it as html so it would display a link to "mysite"???
    cheers,
    Simon

    thanks!
    I've missed the fact that it was xml data. Just added .xmlText at the end and that sorted my problems. However I'll write down cfsavecontent solution for the future reference.
    cheers,
    Simon

  • International keyboard with Norwegian layout - possible to remap some keys?

    Hey, I have a MBP OS X 10.6.8 with international keyboard that I have selected a Norwegian layout on, since I need the special characters we have in our language (æ, ø and å).
    My question is - is it possible to remap just SOME keys/characters while in this configuration?
    The keys I need to remap are:
    < to ` (so I can do Command-` in programs to change windows)
    ´ to ' (because I use the standard apostrophe)
    Any way to do this in OS X, or maybe with other software? Thanks for any help!

    Some possible options:
    +Use system preferences/language & text/text/symbol and text substitution to create shortcuts
    +Use Ukelele to create a custom keyboard layout
    http://scripts.sil.org/ukelele
    +Use the US layout and type your special characters using the built-in alt key shortcuts
    http://homepage.mac.com/thgewecke/diacritics.html
    Note:  Standard apostrophe is alt + @ on the Norwegian layout (alt + \ if keys are printed for US layout).

  • Some issue with appstore and software update

    Hi all,
    I have some issues with app store and software update.
    Sometime App Store report that it was available software update for Mac OS X ML. When I enter in App Store to upgrade something goes wrong and I cannot do anything.
    If I close and open again App Store, it start to look for update and aftware 5-10 seconds App Store reports that there aren't update available.
    I take a look in /var/log/install.log and I found this:
    Jun  4 01:40:54 XXX.local Software Update[6741]: Can't load distribution from https://swdist.apple.com/content/downloads/03/60/041-5259/K4G5rj8jSCBBxxxLM2XHpjPJdGspgBHzFX/041-5259.English.dist.gz: Host cert invalid or otherwise insecure download
    Jun  4 01:40:54 XXX.local Software Update[6741]: Failed Software Update - trust evaluation failed in SecTrustEvaluate with result: 5
    Jun  4 01:40:54 XXX.local Software Update[6741]: Can't load distribution from https://swdist.apple.com/content/downloads/32/52/041-5688/9zts9cfPJssQJdHBjQ2TFM5yxSgqwrT6rM/041-5688.English.dist.gz: Host cert invalid or otherwise insecure downlo
    Jun  4 01:40:54 XXX.local Software Update[6741]: Failed Software Update - trust evaluation failed in SecTrustEvaluate with result: 5
    Jun  4 01:40:54 XXX.local Software Update[6741]: Can't load distribution from https://swdist.apple.com/content/downloads/21/24/041-5260/876hzpgDST2NBNK2LKmjpPBhDwrL94sJ9x/041-5260.English.dist.gz: Host cert invalid or otherwise insecure download
    Jun  4 01:40:54 XXX.local Software Update[6741]: Removing package source SUContentLocatorPackageSource from manager
    Any ideas?
    Thanks
    Regards

    Back up all data.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    In the upper left corner of the window, you should see a list headed Keychains. If not, click the button in the lower left corner that looks like a triangle inside a square.
    In the Keychains list, there should be an item named System. If not, select
    File ▹ Add Keychain
    from the menu bar and add the following item:
    /Library/Keychains/System.keychain
    From the Category list in the lower left corner of the window, select Certificates. Look carefully at the list of certificates in the right side of the window. If any of them has a a blue-and-white plus sign or a red "X" in the icon, double-click it. An inspection window will open. Click the disclosure triangle labeled Trust to disclose the trust settings for the certificate. From the menu at the top, select
    When using this certificate: Use System Defaults
    Close the inspection window. You'll be prompted for your administrator password to update the settings. Revert all the certificates with non-default trust settings.
    From the menu bar, select
    Keychain Access ▹ Preferences ▹ Certificates
    There are three menus in the window. Change the selection in the top two to Best attempt, and in the bottom one to CRL.
    Log out, log back in, and test.

  • Dual G5 late 2004. Some problems with fan and freeze and now can't start

    I just purchased a late 2004 Dual 2.5 Gig, with PCI-x and 1 gig ethernet. 1 Gig of what I presume to be factory ram and blue toothe. Connected to a new 23" Apple display.
    The problems I have been having pale to where I stand now. I am stuck and can't move forward. At this point, the computer is off. When I try to turn it on, it does little to nothing and gradually the fan speed increases until the computer sounds like it wants to take off. The screen either stays dark, or sometimes I see the ? briefly, and then the grey screen with logo and that is where it stops. Currently I can't get past a lot of fan noise??
    Can I get this thing started?? I have tried both starting from CD and hard drive. No luck.
    This whole mess started yesterday and has continually gotten worse. Those details I can get into if needed, but for now, what can I do to see the screen and start over.
    I just bought the machine, and I was doing a clean install that was acting funny. Hard drive sleep mode would cause the machine to not wake up. Specifically it was the monitor that would not wake up. The keyboard and the computer would still respond when I adjusted the volume. The screen was black.
    I narrowed the problem to drive sleep, or monitor sleep by using the energy saver preferences. Just the monitor sleeping wasn't the probem. The computer would wake up. But if the hard drive went to sleep, then I could never get the screen back and the computer acted dormant. The only thing I could get was the volume sound from the computer and lights on the keyboard.
    I ran Techtool Pro 4.1.2 ( i think ) and it reported possibe problems on the hard drive with the volume. I made the changes hoping that would fix the problem? No.
    I decided to flush it all and start over with the install cd, make sure firmware was good, reformat the drive, and then install the System. But instead, I got caught is this loop of death that I can't get out of.
    It had a kernal panic the first day I turned it on, but that was the last one. (dark screen with white message) The computer ran rather sluggish at times. I was shocked at times. Very slow finder response.
    So? Suggestions? I have searched Apple support and tried anything I can think of. This is my first G5, but I have had some exposure to OSX beginning around 10.2. I am at my wits end and would greatly appreciate some input. For now I have to get some sleep.
    Is my battery bad? It just won't start?
    Thank you for any help you can provide, or links to articles!!

    Hi Lawson, and a Warm Welcome to the Power Mac G5 Forum!
    You could try a PMU/SMU reset
    http://docs.info.apple.com/article.html?artnum=300341
    Use the second procedure if you have a button as shown in the photo - use the first method if you don't. You may not have to remove the intake fan assembly to get at the button. Observe static precautions and make sure to press the button once only.
    Then try to start up on the CD/DVD.
    If it fires up ok you could then proceed with the 10.4 install as before, and then combo update to 10.4.8
    http://www.apple.com/support/downloads/macosx1048comboupdateppc.html
    I would connect only a display, wired keyboard and mouse to start with - and disable any of the sleep, etc. Options in Energy Saver.
    You may wish to use the Disk Utility on the 10.4 retail disc(under Utilities in the menu) to Erase and zero(select Security Options) the drive before the install.
    The kernel panic and other problems could have been caused by a corrupted system on the boot drive, or by hardware problems, such as RAM, video card, battery, etc. Some of the hardware stuff is linked-to further down the post here
    http://discussions.apple.com/thread.jspa?messageID=3084827&#3084827
    However, try the PMU/SMU reset and erase/install first, and post again with details if you still have problems.

  • Hi, some of the keys on my mac book air aren't working e.g. Hyphen, colon but others such as question mark, full stop are fine. Does anyone know how to fix. My toddler pressed some keys on keyboard and this is the result!

    Hi, my toddler pressed some keys on my keyboard and now some of my symbol keys such as comma, hyphen etc do not work. Others such as . and ? Are fine. Does anyone know how to fix? Thanks

    You may have this sorted out by now - but if not try resetting your Language to English.  I had the issue and found the emoji keyboard was set to spanish.

  • I was doing some stuff with torrents and now pop ups are everywhere. I deleted everything I downloaded that had to deal with them but the pop ups are still occurring. Does anyone know what to do? I do have AppleCare and was wondering if they could help.

    I was downloading some stuff off of piratebay and I downloaded utorrent. I went back on my MacBook Pro later and found a bunch of pop ups on safari and a completely different safari format. I reset safari cleared everything deleted the stuff I downloaded and they are still occurring. I was wondering if it is an easy fix and /or AppleCare might be able to help me. Do I have a virus?

    I would agree with kevin_, it sounds like you have downloaded some adware.
    Torrents and piracy sites are extremely dangerous, and you should stop downloading from such places immediately! They have become very common sources for adware and malware on the Mac... really, the only common source, to be honest. You practically can't swing a stick in such places without hitting something malicious.
    Stop downloading stolen content, provided by untrustworthy criminals, or you'll have this problem repeat itself. Next time it might be worse than simple adware.

  • Need some help with WRT54G2 and Home Network

    Ok, I've had the WRT54G for a long time and recently updated to the WRT54G2 but now can't access file and print sharing that's running Windows Vista from Windows XP using wireless.
    Here's my set up,
    Desktop running Windows Vista connected to router (This is the computer with Folders and Printers)
    2-Windows XP Laptops connected wirelessly 
    All 3 are set on same workgroup can be seen on Windows XP machine when going to, My Network Places, also all can get on the internet.
    Any ideas what the problem could be? I'm guessing a setting somewhere but I haven't been able to find it.
    Solved!
    Go to Solution.

    Hey Gary...
    I just upgraded my set up to a WRT54GS from an older linksys router that only had A/B. I have two wired desktops and a wireless desktop in my network..all running xp and all sharing files. I had no issues with the file sharing prior to the upgrade but once I changed over the computers could see eachother, access the net but not share files...Chances are it is likely a firewall issues...
    Try turning off windows firewall...that might help..
    Also depending upon your antivirus there might be settings in there that you would have to change to allow for file sharing.
    In my case I did some research and read that if you are running Norton 2009 on the computer that you want to share files from to try uninstalling and reinstalling the program..Had something to do with firewall settings in the program.....I did that and ouila...now all my computers are sharing again...
    Message Edited by redlands on 06-07-2009 06:41 AM

  • Radium 49 keys with leopard and MBP??

    Having trouble using my Radium 49 USB keys with my MBP (newest version) on Leopard 10.5.6
    Anyone else got these working?
    I have downlaoded the latest M-audio leopard driver but still no joy however, the USB powers the Radium as it all lights up..
    However I also have a new Mac Pro running Leopard and the Radium just plugged striaght into this and worked?! no problem!!
    What am I doing wrong? and anyone else got their Leopard MBP working with a Radium 49?

    I'm thinking the MBP USB port doesn't have enough power to fully activate the keyboard.
    How many USB ports does the MBP have, on the new ones there's a low power and a high power port, you might try the other USB port.
    Other than that, did the Radium-49 come with a power adapter? Try it with that if it works you will know it's the USB port.
    pancenter-

  • Canon HV20 24P HDV workflow, Some things with FCP and Quicktime are ODD.

    Canon HV20, 24P, HDV, CMOS sensor...
    First, I do hope and pray that the FCP dudes are making this work native at HDV 24p -- great!
    But until then, there's a workflow (see below) and a real oddity I can't figure out, and if anyone has any thoughts about it that would be great.
    Sometimes, the image captured/shown/exported is a lighter picture, and other capture/playing/export methods are darker picture. Example: the captured 60i from Final Cut Pro has a light gamma picture when viewed in Quicktime Player.
    But playback in Final Cut Pro appears darker, and rich. But then exporting it out turns it light again, but export out to a MPEG-2 DVD is darker again? ODD.
    Can anyone explain the FCP capture size of 1888 x 1062?
    Anyhow, here is some workflow success that I had.
    Capturing in Final Cut Pro using the HDV 1080/60i setting with HDV firewire basic NDF. But 60i is evil. So that's not enough. Got to get it to 24P,since that allows 20% more bandwidth, space, faster renders, and DVD players can play it.
    Transcoding to a regular editing codec before converting to 24P is required. I found that MPEG Streamclip would create a wierd, jagged edges on small moving figures with high contrast, no matter what the settings, so I refuse to use it to export the footage.
    So instead, FCP has an additional capture option of "Apple Intermediate Codec" or something like that, which transcribes it on the fly to AIC. I always stayed away from AIC like the plague, but they must have spent some time with it because it's nearly identical to the HDV original.
    Next, open up in Quicktime Player, and start the clip on that second P frame. Sounds odd, I know. Goto the first interlaced frame, and back up two frames. Mark the "I", and then move that Out marker to the end, and then Trim the clip to the selection. Do that with all the clips, and then you can batch 24P them all.
    If you don't want to find that one frame each time, here are the other settings:
    First, open up the clip inside cinema tools, and then select Rev. Telecine button.
    Find out which of these your clip is doing at the very beginning:
    p-p-i-i-p - aa
    p-i-i-p-p - bb
    i-p-p-p-i - bc
    p-p-p-i-i - cd
    i-i-p-p-p - this is no good. must remove at least one frame from the beginning of source file
    i = interlaced frame
    p = progressive frame
    all settings use the F1-F2, style one, standard upper/lower

    Sometimes, the image captured/shown/exported is a lighter picture, and other capture/playing/export methods are darker picture. Example: the captured 60i from Final Cut Pro has a light gamma picture when viewed in Quicktime Player.
    But playback in Final Cut Pro appears darker, and rich. But then exporting it out turns it light again, but export out to a MPEG-2 DVD is darker again? ODD.
    This is known. This happens with ANY footage you look at in FCP and QT player. QT lightens the gamma of the footage. Why? Something to do with adjusting the image for computer monitors.
    Shane

  • Help. My iphone will not charge after some contact with water and it is dead. What do i do?????

    My phone made some contact with water but after putting it in rice, it was fine. The only problem was that it had stopped charging and now the battery is dead and I don't know what to do

    If you try to have it repaired and it still doesn't work, you'll be out that money and still need to buy a replacement phone.  Water damaged phones rarely work well again.  I know you're looking for a lower cost option, but spending the money and getting a phone that works 100% seems to be the best option.  It's your money and your choice, but I wouldn't try to fix a water damaged phone.  Maybe that's just me.........

  • Different secret keys with 192 and 256 length

    Hello everybody
    I have this problem.
    I want to generate secret key from my password. I used this code:
    String algorithm = "PBEWITHSHA1AND192BITAES-CBC-BC";
        int iterations = 3456;
        byte [] salt = Hex.decode("20CB84A0CE6F4C5B");
        String pass = "321TestovacieHeslo";
        byte [] passBytes = pass.getBytes("UTF-16BE");
        //1.way
        PKCS12ParametersGenerator gen = new PKCS12ParametersGenerator(new SHA1Digest());
        byte [] testBytes = PKCS5S2ParametersGenerator.PKCS12PasswordToBytes(pass.toCharArray());
        gen.init(testBytes,salt,iterations);
        //gen2.init(testBytes,salt,iterations);
        KeyParameter parameter =
            (KeyParameter)gen.generateDerivedParameters(192);
        //2.way
        SecretKeyFactory keyFact = SecretKeyFactory.getInstance(algorithm);
        SecretKey key = keyFact.generateSecret(
                new PBEKeySpec(pass.toCharArray(), salt, iterations, 192));
        //print
        byte [] output = key.getEncoded();
        byte [] output2 = parameter.getKey(); Both ways give me same results, but now I wanted to achieve same password as from Crypto++.
    This code give same result with 128 bit keys but not with 192 ot 256 bit. (I tried 8/16/24 byte salts)
    Where is problem ? Padding ? Because when I used all same parameter with 128 and 192 bit I got these results:
    128bit:7b4b7b59b230003f452fa4fe7c0eb9c1
    192bit:7b4b7b59b230003f452fa4fe7c0eb9c19231f5a471741535
    My concret case:
    input: password: "321TestovacieHeslo"
    salt:"20CB84A0CE6F4C5B"
    iter:3456
    And I need this 24 byte larger key from Crypto++:
    C6408B48D17A1A38F51AC7F05DE24CBB967049DF9FDDCB8F
    but I got this:
    1eb4b95846cdfb60eae519c8efa2569011e30e964be7cfbd
    Can anybody help me ?
    Thanks

    Have you tried using "ntp update-calendar"?

Maybe you are looking for

  • Replay video in Muse (some controls doesn't work)

    Hello colleagues, Can't understand what is happening. I put a video in the Animate and assign controls for buttons (for example, replay video from 0:00 sec). For stage and video autoplay function are disabled. Then I export the oam-file and insert it

  • How to make a computer invisible in  network?

    I was amazed that in the left-hand panel of FINDER, under the SHARED tab, there are about 6 other computers that I am seeing. I am concerned that others may be able to access my computer via my wireless connection. How can I make sure I am protected,

  • Error while testing entity service

    Hi all,             I created a CAF Development component and an entity service for the same. While trying test the entity service through service browser i get the follwing error : Application error occurred during request processing. Details:com.sa

  • I am not happy with the changes in recent versions of Firefox

    Hey Guys and Girls in the 'Development Team' Have you noticed that the vastest majority of Firefox users are looking for ways to return the interface to the one they know and love. Clearly this has been ignored. The changes have taken away all of the

  • PDF's not printing to Epson R1900

    Posted problem awhile back. PDF would not print to my Epson R1900. Downloaded umpteen different drivers. I am on a G5 Intel Dual Core running OS 10.5.6 or 10.5.7 since yesterday. Adobe very little help, Epson likewise, although I talked to an Epson T