How can i bind something to caps lock in AwesomeWM?

Recently i've aquired new notebook which doesn't have caps_lock, num_lock and scroll_lock LEDs, so i decided to put keyboard layout indicator to system tray.
Currently i am using Xorg config to set XkbLayout and XkbOptions (like so http://paste.pocoo.org/show/478789/ ).
I tried first widget from http://awesome.naquadah.org/wiki/Change_keyboard_maps but soon realized that it does not detect layout change in any way, so i would like to bind kbdcfg.switch function to caps_lock, but i can't find any documentation on binding something to caps_lock.
Also i've noticed a strange thing, when i change my layout with this function i am unable to use shortcuts that use latin letters. They are obviously remapped to by сyrillic, but they do work if i change my layout with caps_toggle. Why do the work with caps_toggle, and how can i make them work with kbdcfg.switch?

blin wrote:
filam wrote:Is there a reason you're not using xmodmap? You may also want to read the Extra Keyboard Keys in Xorg article.
The only reason i have for not using xmodmap is, i don't understand how it can help me, with the task i have. The other article didn't help me either.
Did you read the "How to find capslock status?" thread?
blin wrote:Is suspect the answer is not what you want because your question is not very clear. I understand that you have a keyboard that is lacking certain keys. What is it that you want to achieve? Let some key act as capslock?
I had to read the OP twice to understand it. I didn't notice that he wrote "LED" in the first sentence. What he wants is for his Awesome status bar to display the current activity (i.e. on/off) of the Caps Lock, Num Lock and Scroll Lock keys. He does not need to remap any keys.
Edit: Check Retrieving CAPS LOCK info using Xlib or just do a Google search for "linux caps lock status -map -disable".
Last edited by filam (2011-09-20 19:43:45)

Similar Messages

  • I'd like to know how can u put letters on caps without holding all times the shift key?

    I'd like to know how can u put letters on caps without holding all times the shift key?

    Settings>General>Keyboard>Enable Caps Lock>On. Then just tap the shift key quickly.

  • How can i transfer something from my iphone to my ipad using bluethooth??

    how can i transfer something from my iphone to my ipad using bluethooth??

    You can use iTransfer.
    https://itunes.apple.com/sg/app/itransfer-share-files-ease/id480195086?mt=8

  • How can I get the screen to lock on my iPhone 4, so I don't press buttons while talking?

    I just upgraded to the iPhone 4.  When I am talking on the phone, the screen doesn't lock, so I am constantly pressing buttons or hanging up on the person I'm talking to.  How can I get the screen to lock while I'm talking?  It's driving me NUTS.

    The otterbox is one of the culprits. Take the phone out of the case and see if it still happens. If so it is not the case. If the problem goes away, then you may need to make the hole slightly larger. My family has three iPhone 4's in otterboxes and none have this problem. Other users on this forum have reported success with the above methods.

  • How can I remove something from my iTunes download list permanently?

    Same as title: how can I remove something from my download list FOREVA! Why would I want to do this? Because it's a piece of poo free sampler from Best Buy that is effing huge, and terrible and I don't want it, ever (it's been stuck to my list since 08, and it must die). Every time I buy something I have to remember to go and remove that from my list, otherwise iTunes gets caught up downloading that thing, which is many times larger than any video/cd/app that I have ever downloaded on iTunes before. It wouldn't be as much an issue if I had a good ISP but I don't, so any non-apple employee people giving some smarmy "get better internets" advice need not apply.

    Once an item enters the download queue, the user cannot remove it. Either let it complete the download (easiest) or contact the iTunes Store customer support department through the Contact page and ask them if they'll remove the item(s) from your queue for you.

  • How can i remove something from the favourite in finder?

    how can i remove something from the favourite in finder?

    previously you solved my problem but this time my preferneces>side bar is not displaying the item which i want to remove

  • HT201343 When I mirror my macbook pro to my apple tv the only thing that shows up is one video that's on my desktop.  How can I watch something that's online on my laptop, on my apple tv?

    When I mirror my macbook pro to my apple tv the only thing that shows up is one video that's on my desktop.  How can I watch something that's online on my laptop, on my apple tv?

    Are you using mirroring or using airplay within iTunes? If you are truly mirroring then you can view anything that is displayed on your computer through Apple Tv
    Or provide more info on your issue

  • My phone is on disable and ask me to connect to itunes and when i try it says i need to unlock my phone? how can i unlock it if its locked ?

    my phone is on disable and ask me to connect to itunes and when i try it says i need to unlock my phone? how can i unlock it if its locked ? please help?

    Connect in recovery mode according to http://support.apple.com/kb/HT1212

  • How can I unlock iPhoto on a locked disc after installing Mavericks?

    How can I unlock Iphoto from a locked disc after I installed mavericks?

    What is the complete, exact text of the error message?

  • HT5887 How can I find something I airdropped to someone vis email. I cannot find it in my email

    How can I find something I airdropped to another via email. I cannot find it in my email box?

    I thought AirDrop uses Bluetooth.

  • I have entered the wrong numbers to put my phone in pass code lock.  However, I didn't set the autolock....how can I get the pass code lock reset?

    I have entered the wrong numbers to put my phone in pass code lock.  However, I didn't set the autolock....how can I get the pass code lock reset?

    Your only choice is to place the phone in DFU mode (search Google for instructions) and restore as a new device.  You will lose all your data.

  • E72 - How can i turn off the keyboard lock functio...

    How can I turn off the keyboard lock function?  If I don't want it to auto lock after 5 mins but stay active, can I turn the auto lock off completely?  I've checked Control Panel - Settings - General - Security - Phone and SIM Card and there appears to the the option, but when you try and select 'off' it doesn't allow you to turn it off.... Help?
    Solved!
    Go to Solution.

    "it is there my frend., go to Menu - Control Panel - Settings -  General - Security - Phone and Sim Card
    then scroll down and select keypad auto lock period"
    Got it from...
    /t5/Eseries-and-Communicators/E72-shortcut-key-key​pad-lock/m-p/572418 bout halfway down. I know I had a google need to find this answer.
    Samsung Galaxy S4 'Black' (current)
    My N9 Black (backup phone)
    My N8 Green runnin Xeon^4 3.2.1
    My E72 White
    My E63 BLUE
    http://www.youtube.com/Jeahavee
    http://www.reverbnation.com/jeahavee
    Stop with the popup notes Nokia sheesh I don't need help from you :/
    I run Windows 7 Home Premium 64bit/Black Opal on my HP Dv6 1030us (DiViUs)
    Windows 7 64 bit Pro and Black Opal on my custom desktop (Giniro)

  • Touchsmart 320, windows 7 how can i tell if the caps are on?

    how can i tell if the caps are on?

    If you have the HP Keyboard software installed, you are supposed to get an on screen display that pops up in the lower left corner of your screen showing you when numlock, caplock are enabled. If you don't get that, you can try reinstalling the keyboard software using HP recovery manager (just the keyboard software - do not do a system recovery!)
    ... an HP employee expressing his own opinion.
    Please post rather than send me a Message. It's good for the community and I might not be able to get back quickly. - Thank you.

  • The create facility in iPhoto is very basic - how can I download something like MS Publisher for my Mac Air?

    The create facility in iPhoto is pretty basic for cards & books etc. - how can I download something like MS Publisher for my Mac Air?

    Pages works pretty well, which should be on the App store:
    http://www.apple.com/iwork/pages/

  • How can I do something at exit ?

    Hi everyone,
    In C, we can do something at program exit with exit handler (atexit() function).
    In our Java application, we use JNI to invoke a native c function. In the C
    function, we attach an exit handler, then call a Java method through JNI.
    And, the System.exit() method is called in the java method called from C native function.
    In the case, we expect that the thread is terminated because of System.exit()
    and the exit handler ,which has been attached in C native code, do something.
    However, we can't see anything to be done by the exit handler.
    How can I do something at the exit in Java method called in a native C function?
    Thanks in advance

    Sorry....
    In the Runtime Class:
    Runtime.addShutdownHook(Thread hook)

Maybe you are looking for