[SOLVED] Identifier of Meta key in xkb/symbols

Hi!  I used to swap CapsLock with Esc for better vim usability by just adding the following lines to xkb/symbols at the section corresponding to my layout:
key <CAPS> { [ Escape, Escape, Escape, Escape ] };
key <ESC> { [ CapsLock, CapsLock, CapsLock, CapsLock ] };
(Maybe it was Escape in lower case but basically that just worked.)
Now I'm on a chromebook with the Meta key in place of CapsLock and I can't find its identifier.  I tried <META> and <MOD4> with no success.  I don't think it's something chromebook specific as other applications correctly recognize the Meta key.
Thanks for your help!
Last edited by ysetdng (2014-07-03 12:45:50)

OK got it!  The key identifier is <LWIN> and the function (to which I want to map <ESC>) is Meta_L.
Last edited by ysetdng (2014-07-03 11:13:00)

Similar Messages

  • Problem with meta key option in Terminal app!

    I used Terminal for awhile now with and without meta-key option but I like the meta-key to be turned on cause im familair with tabbing that way. But one thing I can't do in like irssi, is to make symbols with altkey1234567890.. I can do that without the meya-key option.. Anyone know how to solve this problem?

    This seems a [long-standing|http://www.entropy.ch/blog/MacOSX/2009/01/27/Mac-OS-X-Problem-Unsolved-for-Years-Terminal-Meta-Key-and-Internati onal-Keyboards.html|Mac OS X Problem Unsolved for Years: Terminal Meta Key and International Keyboards] issue.
    A possible solution could be to find how to specify an arbitrary alternate key as the META key, for example the Caps Lock or Fn key.
    Another solution could be to tweak the shell to print the requested characters, even with the "use Option as the META key" option enabled. For what I understand, this route for the Bash shell is explained [here|http://anders.janmyr.com/2009/01/making-mac-os-x-terminal-hum.html|Making the Mac OS X Terminal Hum]. However, I don't know enough of *nix and shells to really understand what's written in that article… moreover, I use the tcsh shell and those instructions seems to me very shell-specific.
    Any idea of what needs to be tweaked in a tcsh shell environment?

  • Vim issues...meta keys and colorscheme not working correctly

    The first issue isn't really a vim problem, but it's related.  When running Vim in a terminal, my meta key bindings don't work.  I've tracked it down to a problem with Xfce's Terminal as noted here: http://vimdoc.sourceforge.net/htmldoc/m … p-alt-keys
    ...but I'm not sure exactly how to fix it.  I suppose I could always switch to another terminal, but I'd like to stick with Xfce's version if possible.
    The second issue is that my color scheme isn't being set when I first load up gVim.  As soon as I open a file, it properly displays, but the "splash" page doesn't show it.  I'm using desert (who doesn't) and this is what it looks like when I first load up gVim:
    I did stop using a separate <code>.gvimrc</code> in favor of putting everything in my <code>.vimrc</code> file under a conditional, and all the other settings work just fine.  Here's what that conditional looks like:
    if has( "gui_running" )
    set columns=84 " Set the window's width
    set lines=43 " Set the window's height
    set guioptions-=T " Remove the toolbar from the window
    set guifont=Terminus 12 " Use a clean monospaced font
    colorscheme desert
    else
    set background=dark
    colorscheme desert
    endif
    In case you're curious, here's my entire <code>.vimrc</code> file.

    phrakture wrote:IIRC this happens for because gvim does not find a ~/.gvimrc and reads /etc/gvimrc after ~/.vimrc (I think).
    Try symlinking ~/.vimrc to ~/.gvimrc
    That solved the problem for me. Thanks 

  • Meta-key in terminal

    I am using a Macbook with a norwegian keyboard. The keyboard doesn't have
    symbols such as | or ~, so I have to use the Option key to produce them.
    In terminals, I have the ability to set Option to behave as a meta-key which gives
    me the full functionality of Emacs as well as meta-key combinations on the shell
    (e.g. Option + d to delete a word in a line of text). However, when I enable the
    Option-key as Meta-key, I cannot use Option key to produce e.g. | or ~.
    What I would like is a way to set another key as Meta-key... Caps lock would be
    nice, since I never really use it. I have tried DoubleCommand, fKeys etc, but none
    of these applications allow me to set a Meta-key. Is there a way to force this behaviour?

    Ah you mean the ESC key posting? That's what I've been using all these years as a workaround, but that is not a real solution.
    The ESC solution is different and more awkward to type than a real meta key. For one it is in an inconvenient location, and more importantly it's not used like a modifier key because you have to press and release it before typing the combination character. So instead of pressing and holding Meta, then typing the dot key, then releasing both (to get the last argument of the previous command line in bash for example), I have to press ESC, then release ESC and then type the dot. If I don’t do that, and hold the ESC key down, the repetition kicks in and that breaks key sequences.
    But I really want to press and hold meta, press the dot, and then release them both at once. Exactly like the combinations that you use with the Ctrl key, or the Mac keyboard commands you use with the Command key. I want to use the meta key like the Ctrl key, which is the natural way to use it. The ESC fallback is a less convenient substitute which we’re forced to use, unfortunately... But I hate it.
    So, if you know of a way to assign the meta role to some key other than the Option key in a way that allows me to use it like a real modifier key that can be held pressed without going into repetition, then that would be the solution I am looking for. And I guess the “other key” can pretty much only be Caps Lock or Fn.

  • 'how to identify the option key'

    pls can someone help me identify the 'option key' on my computer?

    That means the key with the symbol ⌥
    From left to right:
    fn ctrl ⌥ 
    and this is not a key but a smily :-)
    marek

  • Dwm - how to assign a second Meta key

    I'm using dwm and I'm trying to figure out how can I assign the Microsoft Menu key (or context menu key) as a second Meta key?
    I usually use ALT as the meta key. #define MODKEY Mod1Mask, however, I'm not sure if I can use as well the MS key. Thanks

    Head_on_a_Stick, that'd be for the "Windows" key, not the menu key.
    The menu key does not function as a modifier so it cannot be simply configured in dwm's config.h.  When a key is pressed dwm checks the key symbol sent from the x server, and the modifier mask of what modifiers were held while the key was pressed.  The menu key will never be included in the modifier mask, it will only be treated as a key in the eky symbol varaible for the event.  That is unless you make the X server treat is as a modifier with Xmodmap.
    You could map the menu key to one of the 'normal' mod keys, but others are are available that are generally not used (I'd suggest Mod5Mask).  Once mapped, you can just change your modkey in dwm's config.g to match.
    EDIT: I just reread you initial post - you say you want to use the menu key "as well".  Do you mean you'd like to switch between them, or have them both do the same thing?  If you want to switch, use Mod5 as suggested above.  If you want them to do the same thing, simply use Xmodmap to make the menu key a Mod1 key, then don't do anything to your config.h.
    Last edited by Trilby (2014-11-18 12:31:06)

  • WHAT THE HELL IS THE META KEY!?!??!?!

    Hi guys,
    i am currently adding som Accelerators to my JMenus, can someone tell me what the meta key is?
    I tryed the windows key, or alt key.. but no luck so far...
    Appreciate all the help one can get.
    thx

    [http://en.wikipedia.org/wiki/Meta_key]

  • What is the Meta Key?

    Which key on the Windows keyboard corresponds to the "meta" modifier key?
    I assumed the "windows key" on the windows keyboard would register as the meta key, but it is not doing so. I want to have a KeyListener that consumes the windows key when it is pressed, and I thought that testing for isMetaDown() would be able to test if the windows key was pressed or not. It isn't. So does the meta key really correspond to some other key? If so, what can I do to test if the windows key was pressed?

    I don't know what the Meta key is. The only thing I can suggest is to write a simple program to test for it and then press every key on your keyboard until you get a "true" result.

  • Meta key readline in aterm/Eterm

    I'm not certain if I can describe this.  I have the following in my ~/.inputrc:
    C-p: history-search-backward
    M-,: beginning-of-line
    That's Control-p and Alt-comma bound to two separate actions. When I use xterm, these keybindings (and others I have set -- these are just examples) work exactly the way they are supposed to (ie: as defined in the readline man page ).
    However, if I run them in aterm or Eterm, the first keybinding (using the control key) works fine, but the second one (using the Meta key) does not. I also tried it in rxvt on which these two terms are based. It seems like the alt key isn't being interpretted properly in these terms.
    However, the default readline keybindings that use alt (ie: Meta-f for word forward) seem to work fine. What the hell is up with this?
    I've tried setting various term variables, but didn't see any changes.
    Also, the HOME key, when pressed in aterm, just displays a ~, but it works fine in Eterm.
    I want a translucent terminal, but xterm is the only one that I can find that allows my preferred keybindings. :cry:
    Dusty

    i can confirm this in urxvt as well dusty,
    but strange is that my xterm doesn't work well either, it flipps out totally when trying out such things, weired,

  • Meta key won't work in emacs

    When I run emacs in the terminal I have to use the escape key as the meta key, even though I have "use option key as meta key" selected in the terminal options. Any suggestions?

    I'm not an emacs user, but I think mac-command-key-is-meta is not supported by the console version of emacs pre-installed in MacOSX.
    But,
    When I run emacs in the terminal I have to use the escape key as the meta key, even though I have "use option key as meta key" selected in the terminal options.
    This is strange. It works for me. If "use option key as meta key" is On, then "hitting option and V simultaneously" is equivalent to "hitting ESC and then V sequentially". If ESC V (two key strokes) works in your emacs (scroll back 1 page), then option-V (single key storke) should also work.
    Are you sure you are using the option (not command) key?
    Are you hitting the option key simultaneously with the other key?
    PowerMacG4, PowerBookG4, iMac(C2D)   Mac OS X (10.4.8)  

  • Use command key as meta key in terminal?

    I love my new mac pro, but there are some things that I don't want to deal with.
    Both the shell (tcsh) and editor (emacs) that I use rely heavily on the 'meta' key. I have found the option in the settings to use the "alt" as meta, but I would really prefer to use the command key as meta.
    Is there any way to configure 'terminal' to use the command key as meta, rather than the alt key?
    Thanks,
    -jamie

    Some more info-
    I only want to change the behavior of this key in terminal, if possible-
    I don't want to re-map the keys globally.

  • Making "apple" key the meta-key in terminal

    howdy,
    does anyone know how to assign "meta" functionality to the the "apple" button in the terminal?
    cocoa emacs does it by default and i know there's a preference pane to set the option key to meta ...
    i'd be much obliged if anyone could offer a solution.
    cheers!
    -ld

    Ah you mean the ESC key posting? That's what I've been using all these years as a workaround, but that is not a real solution.
    The ESC solution is different and more awkward to type than a real meta key. For one it is in an inconvenient location, and more importantly it's not used like a modifier key because you have to press and release it before typing the combination character. So instead of pressing and holding Meta, then typing the dot key, then releasing both (to get the last argument of the previous command line in bash for example), I have to press ESC, then release ESC and then type the dot. If I don’t do that, and hold the ESC key down, the repetition kicks in and that breaks key sequences.
    But I really want to press and hold meta, press the dot, and then release them both at once. Exactly like the combinations that you use with the Ctrl key, or the Mac keyboard commands you use with the Command key. I want to use the meta key like the Ctrl key, which is the natural way to use it. The ESC fallback is a less convenient substitute which we’re forced to use, unfortunately... But I hate it.
    So, if you know of a way to assign the meta role to some key other than the Option key in a way that allows me to use it like a real modifier key that can be held pressed without going into repetition, then that would be the solution I am looking for. And I guess the “other key” can pretty much only be Caps Lock or Fn.

  • Emacs Meta Key in Terminal

    I have gotten emacs to recognize my windows key as a Meta key by editing my xmodmap.
    But when i run emacs in terminal I dont have a meta key.
    Does anyone know a solution for this?
    Last edited by Jabrick (2011-08-31 01:25:54)

    I have lots of experience with various ways to map particular keyboards to emacs keys. I've been using emacs since around 1980. I understand emacs. I've been using emacs via tarantella for as long as Oracle has used tarantella to access remote hosts, something close to ten years. The way to type meta keys in emacs in a Windows environment is ALT-foo. It works both with SGD and running emacs locally on Windows. I would know if I had been typing ESC; I have not.
    Douglas

  • KDE4 Meta Key

    Hey
    I've been wondering for a while what is the Meta Key in KDE 4 by default. For instance, I'm trying to activate a Track Mouse desktop effect found under System Settings->Desktop Effects->All Effects. The settings window for this effect says: Hold Ctrl+Meta keys to see where the mouse cursor is.
    Many desktop effects require a Meta Key but what it is bind to?

    Skripka wrote:
    xCrucialDudex wrote:Can another key be assigned the role of meta key for KDE keyboard shortcuts?
    Yep.
    System Settings>Country/Regional&Language>Keyboard Layout>Advanced Tab
    It's beyond me. I've tried but I don't really what I could possibly use instead of an already taken Left Win key. Could anyone please break it down like for a toddler how to assign a new meta key?

  • Identifying the Foreign Keys

    How can I identify the Foreign Keys in a row ???
    Regards,
    Junior

    How can I identify the Foreign Keys in a row ???Junior:
    Are you referring to FKs of a View Row involved in a View Link? If so, a View Row could have multiple FKs if it is involved in multiple View Links.
    By writing MT (middle-tier) code, you can get the attribute list from the View Link. Note that this logic is only available in MT. If you need this info in the client, you can write this logic in MT and export it as a custom method that can be called from client.
          // Get the list of view links that this VO ('vo')
          // is involved in.
          String[] vls = vo.getViewLinkNames();
          // Get the View Link object.
          ViewLink vl = myAM.findViewLink(vls[0]);
          // Get the View Link definition.
          oracle.jbo.server.AssociationDefBase vlDef = (oracle.jbo.server.AssociationDefBase)
               ((oracle.jbo.server.ViewLinkImpl) vl).getDef();
          AttributeDef[] attrs;
          // Get the source side attribute definitions
          attrs = vlDef.getAttributeDefImpls();
          for (int j = 0; j < attrs.length; j++)
             System.out.println("  Attr: " + attrs[j].getName());
          // Get the destination side attribute definitions
          attrs = vlDef.getOtherAttributeDefImpls();
          for (int j = 0; j < attrs.length; j++)
             System.out.println("  Attr: " + attrs[j].getName());

Maybe you are looking for

  • How can I use a COM object that does not have a type library?

    Hello, I've created a com server in python for which I do not have a type library. I am able to call functions for this application in Python, TCL, I'm sure VB, etc. without the type library. Must I have a type library registered to use this COM obje

  • How to open my apple formatted external hard drive in my pc?

    Hi guys. I have [or had...] an Australian Imac 27". I do not have the specifications now because the computer died last night. I was working and than suddenly everything slowed down. I tried to open Itunes and icon became an interrogation mark after

  • Automator Find Finder Items mod date criteria

    I am trying to create Automator workflow/app to delete backup files from a folder when older than 2 weeks. I have set "Not within Last 2 Weeks" criteria for mod date, create date plus last access date and I am also using a "Name begins with" criteria

  • WoW- Keyboard and/or number pad.

    I have recently started playing World of Warcraft and I am looking at control options for my MacBook. I tried plugging a keyboard I used for my PC into the USB on my MB and the number pad would not work. So my first question is do I need a special ke

  • When will Keynote support Magic Move between masked objects?

    OK, moving an object from one slide to another is a cool transition, but when they say Move, they really just mean Move.  You would think it wouldn't be that hard to support the Magic Move transition between two masked objects but it can't be done. A