Xmodmap -e "clear Lock" works *except* in xinitrc [SOLVED]

It's a strange problem...
* All other xmodmap expressions in my xinitrc work.  e.g. xmodmap -e "keysym Caps_Lock = F11"
* The expression -e "clear Lock" works after I have started into the window manager, and type it from the terminal emulator
* I tried, to no avail, also (sleep 3; xmodmap -e "clear Lock") &
Help help!
Last edited by jcolinzheng (2008-12-18 16:49:01)

I don't know how I missed this thread before. This is freakin' brilliant. I had this in my openbox autostart file to remap Caps_Lock to Ctrl. It was working, then just stopped with some upgrade the other day:
xmodmap -e "remove lock = Caps_Lock" &
xmodmap -e "add control = Caps_Lock" &
eval `cat $HOME/.fehbg` &
numlockx &
lxpanel &
Instead of using sleep, I simply rearranged the order. It works now:
xmodmap -e "remove lock = Caps_Lock" &
eval `cat $HOME/.fehbg` &
numlockx &
lxpanel &
xmodmap -e "add control = Caps_Lock" &
I added [SOLVED] to the title.

Similar Messages

  • Have downloaded iso 7.0 to my iphone 4s everything works except when i click on  itunes store it opens but there is no content there

    Have downloaded iso 7.0 to my iphone 4s everything works except when i click on  itunes store it opens but there is no content there.Has anyone suffered the same glich or know a solution this problem?.Tanx

    Answer is no.
    If you want the iCloud backup you have to have n internet connection, thus WiFi.
    The not working WiFi has happened with quite a number of users.
    It is not exactly clear what is the cause but there are suggestions to clear it up:
    Some people have had success by removing an apostrophe from the iPhone name. If your iPhone is called something like “John’s iPhone” then this might work. Go to Settings > General > About > Name and change it to something with no apostrophe.
    Some people have reported success by putting the iPhone into Airplane mode and then going to Settings > General > Reset > Reset Network Settings, but the problem may return.
    You could also try going to Settings > Control Center and disable Access on Lock Screen then turn your iPhone off and on again.
    Make sure that your router firmware is up to date.
    Try backing up your iPhone and then restoring it. Check how to factory reset an iPhone for details.
    If nothing is working for you, try contacting Apple or take your iPhone into an Apple Store.
    Succes, Lex

  • HT201406 IOS7 installed OK to my iPhone 4S and worked OK for a while but I have somehow managed to completely jam my iPhone 4s. The touch screen won't work except for up and down gestures (some of the time). I can't make or answer calls, I can't even powe

    IOS7 installed OK to my iPhone 4S and worked OK for a while but I have somehow managed to completely jam my iPhone 4s. The touch screen won't work except for up and down gestures (some of the time). I can't make or answer calls, I can't even power if off. I can't access the hardward ID which Apple support seems to require for Chat.
    It might have happened when I was accessing my camera bypassing the lock screen!
    All I know is that the thing is now useless and it looks like I will have to wait for the battery to run down to see if powering it back up afterwards will solve the problem.

    I have since discovered the "hold down home key and power button" together for a few seconds and this seems to have worked .... phew!

  • Clearing Lock Reason

    Dear Experts,
    I have set the Clearing Lock in the document. I have searched in the DFKKOP table, where I am not able to identify the document number with clearing lock reason.
    I am having requirement that, if the line item is overdue system should lock the partcular line item, Is there any way to set the payment lock automatically?
    Could anyone please guide me in which table I can identify the document number with clearing lock.
    Thanks in Advance,
    Aswin
    Edited by: Aswinkumar.V on May 23, 2011 7:16 PM

    Try the func. module FKK_S_LOCK_CREATE.
    l_obj contains the lock object key.
    CALL FUNCTION 'FKK_S_LOCK_CREATE'
        EXPORTING
          i_loobj1              = l_obj
          i_appl_work_area      = ls_dfkkop-applk
          i_gpart               = ls_dfkkop-gpart
          i_vkont               = ls_dfkkop-vkont
          i_proid               = '10'
          i_lotyp               = '02'
          i_lockr               = l_reason
          i_fdate               = l_startdate
          i_tdate               = l_enddate
          i_uname               = sy-uname
        IMPORTING
          es_locks              = ls_locks
        EXCEPTIONS
          already_exist         = 1
          imp_data_not_complete = 2
          no_authority          = 3
          enqueue_lock          = 4
          wrong_data            = 5
          OTHERS                = 6.

  • All other buttons on the my internet banking is working except the log on button

    Macbook Pro 13-inch Mid 2012 (Newly bought 5-6 months)
    Porcessor 2.5 GHZ İntel Core i5
    Memory 4 GB 1600 MHz DDR3
    472.55GB free of 498.88 GB
    OS X Yosemite Version 10.10.1
    I use my Macbook Pro to do internet Banking. İn the internet Banking(HSBC Turkey) there is a LOG ON botton. That botton use to work before I upgraded to Yosemite, now it doesn't work but all other botton on the my internet banking is working except the log on botton. The weirdest thing is that if I log out to my Admin user and change to Guest User, then go to my internet banking site, the  LOG ON botton is working without any problem.
    One more thing, ever since I upgraded to Yosemite, when I turn off my MacBook Pro and turn on again, it start up very slow, is shows a counter while staring up, granting that I only used around 26-28 GB on the storage it should starts up without any delay.
    Please help me!
    Thanks,
    Arnel
    <Re-Titled By Host>

    Regarding the internet banking site log on, I had a very similar problem with a different internet bank. It was resolved by Safari Menu > Clear History and Website data.

  • Xmodmap: remap num lock?

    Hi,
    Since i quite frequently need to enter numbers in a 1e5 format I want to remap the numlock key to e (so that i can type one-handedly).
    However, i somehow need to activate the number block, so i decided to map Num_Lock on the Scroll_Lock key.
    with
    xmodmap -e "keysym Scroll_Lock = Num_Lock"
    xev gives Num_Lock as correct event, however i miss the following (quoted from xev before changing the original Num_Lock key)
    PropertyNotify event, serial 35, synthetic NO, window 0x2400001,
    atom 0x178 (XKLAVIER_STATE), time 10891125, state PropertyNewValue
    For comparison, i posted the original numlock xev output and the one of the remapped scroll lock:
    http://pastebin.com/f3558ea1c
    Any ideas how i can fix this? Would be brilliant if i could get this to work -though actually I consider it a hardware issue that producers should fix by just adding an e key to the numlock. Screw those multimedia keys, get practical...
    MC

    perhaps you have to set the key to a modifier too (I'm guessing that the lock modifier is numlock:
    xmodmap -e "add lock = Num_Lock"

  • How to get a question in the course placed anywhere in the course and does not appear in the quiz result or total number of questions. Pretest would work except it can't go anywhere in the course (at least for me it can't)

    How to get a question in the course placed anywhere in the course and does not appear in the quiz result or total number of questions. Pretest would work except it can't go anywhere in the course (at least for me it can't)

    Use a normal question, and do not add the score to the total score. That will give you a correct score at the end. But the total number of questions, that system variable will still take into account all questions. You'll need a user variable, and calculate its value by subtracting 1 from the system variable cpQuizInfoTotalQuestionsPerProject. Same for the progress indicator if you want to show it?
    Customized Progress Indicator - Captivate blog
    If you want to allow Review, you'll have to tweak as well. You didn't specify the version, and all those questions I now mentioned.
    And my approach, since you talk about only one question: create a custom question, because you'll have total control then.

  • I just recently upgraded my itouch from 4.1 to ios5, and updated to itunes 10.5. when isynced my music files,ebooks and other apps, all is working except when im trying to sync my video files. it says, canot be synced as cannot be played on this ipod.help

    i just recently upgraded my itouch from 4.1 to ios 5, and updated to itunes 10.5. but when i synced my music files,ebooks and other apps, all is working except when im trying to sync my video files. it says, canot be synced as cannot be played on this ipod. but those are the same files that i have when i was using the old 4.1 version and its syncing just fine.. the itunes advanced tab "create iphone or ipod version" is not working either so i cant convert it to be xferred and synced. what can i do to have my video files synced?

    i had the same problem but i just got a new video converter and made it convert videos to ipod/iphone format and then put them into itunes. i would suggest GOM encoder as the encoder can convert them and then once they're finished converting, put them automatically into your itunes for you. from there you can just sync them to your ipod.

  • I just migrate settings and software from my PowerBook to a new Mac Pro. All the software download from CC is there and working, except for CC, and there is not way to install.

    I just migrate settings and software, include CC, from my PowerBook to a new Mac Pro. All the software download from CC is there and working, except for CC, and there is not way to install. I have try because every time I restar keep bothering asking for installation, (by the way, the link is not up to date). Will appreciate your help.

    never migrate adobe software.  it should be properly installed.
    uninstall all the cc programs you can, clean and then reinstall per, Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6

  • Just got a used iPhone 4, loaded SIM card for straight talk. Everything works except the iTunes and apps. Can anyone help me?

    Just got a used iPhone 4, loaded SIM card for straight talk. Everything works except the iTunes and apps. Can anyone help me?

    Very vague.
    In what way do itunes and apps not work?
    Please explain

  • Moved some Crystal Reports from 8.5 to 10. They all work except one.

    Moved some Crystal Reports from 8.5 to 10. They all work except one.
    The report runs, then stops.
    It brings up the Formula Workshop - Format Formula Editor - Suppress (No Drill-Down)
    Highlights one of the Formula Fields, which is in used as part of record selection, then stops

    Go to [http://service.sap.com]
    In that go to SAP Support Portal ->Help & support tab ->Report a Product Error
    You would have to supply Customer number and User ID and it would allow you to create a case (incident).
    You can also call on our CIC numbers if you face any issues and they would be able assist you in creating an Incident.
    Americas : 1 866 8907686 (toll-free)
    support.bosapamerica@ sap.com (Remove the space)
    APJ: 1800 613459 (toll-free)
    support.bosapasia@ sap.com
    EMEA: 08081012181 (toll-free)
    support.bosapemea@ sap.com
    Hope that helps!!
    Regards,
    Shweta

  • Every time I try to call or they call me, my phone beugs I can not immediatly to call, denied access the directory for 2 to 4 minutes after that it works again   I tried all but nothing, everything works except the call   I have an iPhone 4 Version 6.1.3

    every time I try to call or they call me, my phone beugs I can not immediatly to call, denied access the directory for 2 to 4 minutes after that it works again
      I tried all but nothing, everything works except the call
      I have an iPhone 4 Version 6.1.3
    thank you for your help

    That is the highest you will be able to go with 3g. You need 3gs or 4 to go any higher (multi processors and more memory needed).  Version 4.2.1 marks the end of your updates for that device.

  • 3gs unlocked and jailbroke. everything works except data roaming, how can i fix this? in us

    I have a 3gs unlocked and jailbroke on tmobiles network. everything works except data roaming, pdp athentication failure, how can I fix this?

    Jailbreak voids your warranty.  It tends to brick your device, and you surrender any help from Apple or this forum.
    You need to find your own path through this.

  • Installed CS6 and all working except Photoshop. Says application will not run on this mac despite my having the necessary system requirement of OSX 10.6.8. Can anyone help please?

    installed CS6 and all working except Photoshop. Says application will not run on this mac despite my having the necessary system requirement of OSX 10.6.8. Can anyone help please?

    Hi - I have opened a second log with the same date and name and am now tracking down the problem.
    This seems to be the problem for me: Error "Exit 6" or "Exit 7" | Install log | Read, write, system file errors | CS5, CS5.5

  • Brand new 15" MacBook Pro Retina - unplugged from Thunderbolt Display and Keyboards today find keyboard alpha-numerics not working; except the function keys, delete key, tab key, command/ctrl/shift/alt/fn and arrow keys; and 7/8/9/u/o/j/l nudge cursor

    Brand new 15" MacBook Pro Retina - unplugged from Thunderbolt Display and Keyboards today find keyboard alpha-numerics not working; except the function keys, delete key, tab key, command/ctrl/shift/alt/fn and arrow keys; and 7/8/9/u/o/j/l produce cursor nudges.

    It's a new machine - and the Thunderbolt Display is meant to work with it. You need to just make an appointment at your local Apple Store and have them fix whatever is wrong.
    If you like, you could always try a SMC reset and a PRAM/NVRAM reset to see if either of those will get your keyboard back in working order...
    Clinton

Maybe you are looking for

  • I have problems installing Adobe Flash Player. Can you help?

    When I try to install Flahs Player, it keeps telling me that the installation will be finalized when I will reopen navigators such as Safari. Then I shut down and restart but it does not install

  • 0% Cache Hits?

    I noticed my MacBook Pro getting slow lately. Rebooting seemed to help briefly, then it would slow down again. Laggy, lots of spinning beach balls of doom. Checking MenuMeters, it shows the following: Memory Usage:    1,518.9MB used, 527.9MB free, 2,

  • XML String to JavaBean

    Hello All, I used the java.beans.XMLEncoder to transform a java bean to XML string and created the following xml string <?xml version="1.0" encoding="UTF-8"?> <java version="1.5.0" class="java.beans.XMLDecoder"> <object class="test.proj.testTransferO

  • R9 270X Gaming OC 2G Black screen

    Now at me stand driver versions 13.101, I tried to install this version of the driver is newer, and on all versions after rebooting the PC was a black screen, the system is not just loaded ... what to do? S/N: 602-V303-03SB1310008061 My BIOS: sendspa

  • The pt 3 tutorial code doesn't match the pt 2 tutorial code.  Nowhere to insert head in pt 2 code.

    At the end of the part 2 tutorial, this was the code: @charset "utf-8"; /* CSS Document */ #container { width: 968px; background: #FFF; margin: 0 auto; padding-left: 10px; padding-right: 10px; overflow: hidden; }#main_image { background-image: url(im