Custom keyboard layout and Gnome3

After moving back to my native Sweden I find that the local keyboard is a pain to use for programming (mainly it's the locations of '{[]}' that are painful).  I'm stuck with Swedish keyboards at work, it's mostly laptops so using an external keyboard is not an ideal solution.  Currently my solution is to run the following script
#! /bin/bash
# load XKB, if there is one
XKBDIR=${HOME}/.xkb
XKBMAPFILE=${XKBDIR}/keymap/$(hostname)
if [[ -f ${XKBMAPFILE} ]]; then
xkbcomp -I${XKBDIR} ${XKBMAPFILE} ${DISPLAY} &> /dev/null
fi
and then put the desired layout changes under ~/.xkb/.  I've then created a .desktop and put it in ~/.config/autostart to run the script on login.  The only problem with this is that the changed layout doesn't survive putting the laptop to sleep or hibernating it.
I'd love to get suggestions for better solutions, solutions that survive sleep/hibernate.

But how can I edit this file to extract an Spanish.keylayout ?? And be able to create a custom keyboard layout ??
Don't mess with those files. Just get Ukelele, it comes with copies of what you need:
http://scripts.sil.org/cms/scripts/page.php?siteid=nrsi&itemid=ukelele
What exactly are you trying to do? Some other info is
http://m10lmac.blogspot.com/2007/02/more-ways-to-type-spanish.html
http://m10lmac.blogspot.com/2007/04/typing-catalan.html

Similar Messages

  • Custom keyboard layout from standard layout

    Hi,
    I'm trying to copy the Spanish-ISO keyboard layout in order to create a custom keyboard layout, and change somme attributes like icons, etc.
    I've seen that standard keyboard layouts are in:
    /System/Library/Keyboard\ Layouts/AppleKeyboardLayouts.bundle/Contents/Resources/AppleKeyboardLayouts-B.d at
    and
    /System/Library/Keyboard\ Layouts/AppleKeyboardLayouts.bundle/Contents/Resources/AppleKeyboardLayouts-B.d at
    The difference between them is byte ordering, little or big endian, depending on platform, PowerPC or Intel ( this is my opinion... )
    But how can I edit this file to extract an Spanish.keylayout ?? And be able to create a custom keyboard layout ??
    Regards,
    Joan

    But how can I edit this file to extract an Spanish.keylayout ?? And be able to create a custom keyboard layout ??
    Don't mess with those files. Just get Ukelele, it comes with copies of what you need:
    http://scripts.sil.org/cms/scripts/page.php?siteid=nrsi&itemid=ukelele
    What exactly are you trying to do? Some other info is
    http://m10lmac.blogspot.com/2007/02/more-ways-to-type-spanish.html
    http://m10lmac.blogspot.com/2007/04/typing-catalan.html

  • Problem with Mail and customized keyboard layout

    I have created a customized keyboard layout in XML, it loads and works perfectly with all applications except Apple Mail. I noticed on a googlegroup that somebody has the same problem. How can I submit this Mail bug to Apple?

    download and run Find Any File to search for  "Antidote".
    FAF can search areas that Spotlight can't like invisible folders, system folders and packages. Any file you find will be in the search results window and can be dragged to the Desktop and then to the Trash bin.
    OT

  • How can I get Final Cut 7 to remember my customized keyboard layout?

    Hi everyone, I'm new to this community, my name is Flavio, from Argentina.
    I'm on a Mac Book Pro Intel Core Duo 2, using Final Cut 7 and I'm using a customized keyboard layout (1 for zoom in, 2 for zoom out), but everytime I launch the application I have to go to Tools>Keyboard Layout to change it, is there a way to tel the ap to launch that layout almays?
    Thanks!

    It works for me without doing anything special.  You might try deleting your fcp preferences
    https://discussions.apple.com/docs/DOC-2491
    If that doesn't solve it, describe exactly what your doing to customize the keyboard. 
    I assume if you do a "save keyboard layout" from the tools menu: keyboard layout  after customizing the keyboard and then load keyboard layout after relaunching fcp, that at least works.

  • Ukelele generated custom keyboard layouts not working in Lion?

    I asked this question in the stackexchange site a few days ago.  Nothing I've tried has worked so far, except for creating a new account.  Because a fresh account works, it's got to be something with my preferences, right?
    http://apple.stackexchange.com/questions/21691/ukelele-generated-custom-keyboard -layouts-not-working-in-lion
    Here's the question from above:
    I created a custom keyboard layout with Ukelele (http://scripts.sil.org/ukelele) in Snow Leopard (idea is to generate scandinavian letters with Alt-key, otherwise have a pretty much standard U.S. layout). After the upgrade, the old installed (to ~/Library/Keyboard Layouts) layout wasn't working.
    Ukelele seems to work OK in Lion, but whether I put the generated keylayout in a bundle or single file, or save it "/Library/Keyboard Layouts" or "~/Library/Keyboard Layouts" doesn't seem to matter.
    Help?
    EDIT:
    @Sergio, I cannot choose the layout in Input Sources. One keylayout file I tried:http://semeai.org/~sjl/us-scands.keylayout
    [EDIT: Removed unrelated stuff]
    UPDATE 2011/08/15:
    @Tom:
    Copied your keylayout (it naturally ended up in my Junk folder):
    midgard (01:55) >ls -l ~/Library/Keyboard\ Layouts/MongolianQWERTY.keylayout-rw-r--r--@ 1 sjl  staff  44536 Mar 13  2008 /Users/sjl/Library/Keyboard Layouts/MongolianQWERTY.keylayout
    Logged out, logged in, isn't showing in Input sources (I'm looking very closely between "Maori" and "Myanmar - QWERTY").
    I've also uninstalled bunch of software and plugins giving suspicious messages to system.log, but hasn't helped.
    UPDATE 2011/08/16:
    I created a test account, and lo, the layout works perfectly for it. Also the bug in preferences doesn't show for that account. When trying this on my own account, there are no errors in Console logs with the suggested keywords (I can't seem to locate console.log file, though).
    UPDATE 2011/08/16 later:
    Nuking Library/Caches (and relogging) didn't help.
    UPDATE 2011/08/17:
    I did
    % find Library -name "*.plist" -exec mv {} {}.renamed \;
    and restarted, but it didn't help. I restored the situation with
    % for file in `find Library -name "*.plist.renamed"`; \  do mv "$file" "${file//.renamed/}"; done
    addendum: I also went through all the .plist files with plutil -s as described inhttp://www.askdavetaylor.com/can_i_check_my_plist_files_in_mac_os_x_for_problems .html. There was some brokennes, but in very unrelated applications.

    Tom,
    I think I love you.
    That absolutely did it! Thanks so much!
    If you'll answer with the same link in the stackexchange site, I'll mark the answer as correct, so you'll get the rep there.
    Thanks,
    Sami

  • How to set custom keyboard layout as default?

    I've downloaded a german keyboard layout for normal PC keyboards from this page: http://www.nullpointer.de/stuff/keylayout/index.de.
    Everything works fine. The layout is showing up in "Input Sources".
    But for some reason I cannot uncheck the default "Apple German Keyboard Layout" as you can see in this screenshot:
    The TickBox next to it is disabled...
    This leads to the problem that in some applications that layout is being used (switched to) automatically instead of keeping the new one...
    How do I set a custom keyboard layout as default and/or deactivate built-in one?
    Thanks in advance!
    MemphiZ

    This has come up before, and I think it is not possible.  The OS always keeps one of its own Latin keyboards active, and unfortunately I have not seen any way that these (located in system/library/keyboard layouts/applekeyboardlayouts.bundle) can be modified by the user.
    PS Another possible source for "PC" layouts for people using that kind of hardware instead of Apple keyboards is the set of Logitech layouts provided when you download Ukelele.

  • Custom Keyboard Layouts

    so i happen to be working with fonts mapped in the Private Use Area of unicode. i have a custom keyboard layout for those fonts and they display properly in every application i've tried except for illustrator (don't know about other adobe software). in illustrator i just get the big square symbol for when a character is missing. i tried typing in other apps and then pasting in illustrator and i get the same missing symbols.
    is this a limitation of illustrator or am i doing something wrong? i also can't enter the characters by using the Glyphs palette. all the characters show up but when i double click a character it types as missing, or gets replaced by a different character not in my font set.
    any help would be appreciated.
    i'm on CS4 on OSX

    Looks like some key codes are different. Here I fixed the "\ and |" key using the code 100 instead 82 (used by Linux).
    Now everything works, except the "/ and ?" key (identified by 89 in Linux) and the � (I'll check the portugal layout for it)

  • 3.4 deleted my custom keyboard layout settings

    Hi,
    just a nasty bug report. On all my Macs (iMac 27" early 2009 and mid 2011; MPB 15" early 2008 - all running 10.8.2) Aperture 3.4 update deleted my custom keyboard layout setting. It is just gone....
    You better make backup before you update. I wonder what I will discover next....
    Seems to me like Aperture will never be a great  piece of software...

    How did you create the custom keyboard layout? Using a plug-in? Or do mean the custom command settings? My custom command settings are still there. The presets are stored in the User library if you need to restore them.
    ~/Library/Application Support/Aperture/Command Sets/My Commands.apcommands
    If you used plug-ins to configure Aperture, check out if they are still compatible. The recent version accepts only sandboxed plug-ins:
    Aperture 3.4 and later: Some third-party plug-ins are no longer compatible
    Regards
    Léonie

  • How come my custom keyboard layout won't work in Pages?

    Greetings.
    I have created a custom keyboard layout through the program Ukelele. When I had saved it and selected it as the current keyboard layout, I begin to type and it types as if the keyboard layout were the default US. I changed the font thinking some of the characters must not show up in some of the fonts, nothing; still typing in a default US format. I then went to TextEdit and it worked perfectly fine. It acknowledged the custom keyboard layout I was using. :
    My question(s) is(are): How come in TextEdit my custom keyboard layout can work, but in Pages it doesn't? Is there something I need to change for Pages to start using my custom keyboard layout?
    - With regards:
    OSxOS (T. Levi Drayton)
    System Info: MacBook Air (13-inch, Early 2014), OS X Yosemite (10.10.1), Pages (5.5.2)

    Thanks for sending the layout.  It installed properly in Home/Library/Keyboard Layouts and I was able to select its (generic) icon in the "flag" menu at the top right of the screen, and it worked fine in Pages 4 and Pages 5.
    Another place you could ask is
    https://groups.google.com/forum/#!forum/ukelele-users

  • Customized keyboard layouts - modifier keys

    Hi,
    I have a question relating to the modifier keys in a customized keyboard layouts.
    One can modify existing layouts or create new ones in the form of a .keylayout XML file in /Library/keyboard Layouts or ~/Library/keyboard Layouts.
    According to "Technical Note TN2056" of Apple's online reference, http://developer.apple.com/mac/library/technotes/tn2002/tn2056.html, it is possible to discriminate between the "left" and "right" versions of the modifier keys (e.g. option - "left Option" and rightOption - "right Option"). However, on my mbp 13" all modifier keys seem to be recognized as their "left" versions by the system.
    Is this a known problem? Does anybody know a way to obtain a keyboard layout which can discriminate between left/ and right-modifiers?
    Jan

    This is from the document you cited.
    Note that many hardware keyboards do not have both left and right versions of a modifier key. It is usually safest to specify modifers in terms of the "any" variants (anyShift, anyOption, anyControl).

  • Custom Keyboard Layout

    Tried to create a couple of custom keyboard commands via tools> custom keyboard layout. FCS2 seems to completely ignore the two changes that I made (I did unlock and lock during the process)
    Is there a step I’m omitting?
    m

    I think what you have to do is save your changes into a new keyboard layout - and do it before you close the layout window. Then load the layout and you should be good to go. I did a quick test and that seemed to be how it worked.
    Hope that helps.
    jesse.

  • [SOLVED] Add a custom keyboard layout in X

    I'd like to discard QWERTY and start using Dvorak. However, I find it may be easier to accustom myself to Dvorak if I exchange its left-hand keys with right-hand ones.
    So I want to create a custom keyboard layout. By inspecting /usr/share/X11/xkb, I found there are two methods to specify keyboard layout: by keymaps (seems to be deprecated) and by rules. Both methods will then determine and incorporate keycodes, types, compat, symbols, and geometry.
    Of course I can directly modify existing configurations (for example, to change symbols). But these settings will be gone once I update the package xkeyboard-config.
    Then my question is: Is it possible to add a custom keyboard layout in the user's home directory in a pluggable way?
    Anything about how to add separate keyboard layouts in system folders (say /usr/share/X11/xkb) are also welcome so I can create a separate package which doesn't clash with xkeyboard-config. Thanks.
    PS. I know xmodmap-based methods, but I prefer an original layout which can be loaded and unloaded with setxkbmap.
    Last edited by cyker (2012-01-25 15:50:00)

    If you use ext, you can use "chattr +i filename" to stop the file from being modified - that way you can make sure your changes don't get lost on the update. I have put a colemak file in /usr/share/X11/xkb/symbols/ and can simply load it with "setkxbmap colemak", but I don't really know the magic behind layout settings.
    For reference, my colemak file, with polish diacritics:
    // Colemak symbols for xkb on X.Org Server 7.x
    // 2006-01-01 Shai Coleman, http://colemak.com/ . Public domain.
    partial default alphanumeric_keys
    xkb_symbols "basic" {
    include "us(basic)"
    name[Group1]= "Colemak";
    // Alphanumeric section
    key <TLDE> { [ grave, asciitilde, dead_tilde, asciitilde ] };
    key <AE01> { [ 1, exclam, exclamdown, onesuperior ] };
    key <AE02> { [ 2, at, masculine, twosuperior ] };
    key <AE03> { [ 3, numbersign, ordfeminine, threesuperior ] };
    key <AE04> { [ 4, dollar, cent, sterling ] };
    key <AE05> { [ 5, percent, EuroSign, yen ] };
    key <AE06> { [ 6, asciicircum, hstroke, Hstroke ] };
    key <AE07> { [ 7, ampersand, eth, ETH ] };
    key <AE08> { [ 8, asterisk, thorn, THORN ] };
    key <AE09> { [ 9, parenleft, leftsinglequotemark, leftdoublequotemark ] };
    key <AE10> { [ 0, parenright, rightsinglequotemark, rightdoublequotemark ] };
    key <AE11> { [ minus, underscore, endash, emdash ] };
    key <AE12> { [ equal, plus, multiply, division ] };
    key <AD01> { [ q, Q, adiaeresis, Adiaeresis ] };
    key <AD02> { [ w, W, aring, Aring ] };
    key <AD03> { [ f, F, atilde, Atilde ] };
    key <AD04> { [ p, P, oslash, Ooblique ] };
    key <AD05> { [ g, G, dead_ogonek, asciitilde ] };
    key <AD06> { [ j, J, dstroke, Dstroke ] };
    key <AD07> { [ l, L, lstroke, Lstroke ] };
    key <AD08> { [ u, U, uacute, Uacute ] };
    key <AD09> { [ y, Y, udiaeresis, Udiaeresis ] };
    key <AD10> { [ semicolon, colon, odiaeresis, Odiaeresis ] };
    key <AD11> { [ bracketleft, braceleft, guillemotleft, 0x1002039 ] };
    key <AD12> { [ bracketright, braceright, guillemotright, 0x100203a ] };
    key <BKSL> { [ backslash, bar, asciitilde, asciitilde ] };
    key <AC01> { [ a, A, aogonek, Aogonek ] };
    key <AC02> { [ r, R, dead_grave, asciitilde ] };
    key <AC03> { [ s, S, sacute, Sacute ] };
    key <AC04> { [ t, T, dead_acute, dead_doubleacute ] };
    key <AC05> { [ d, D, dead_diaeresis, asciitilde ] };
    key <AC06> { [ h, H, dead_caron, asciitilde ] };
    key <AC07> { [ n, N, nacute, Nacute ] };
    key <AC08> { [ e, E, eogonek, Eogonek ] };
    key <AC09> { [ i, I, iumlaut, Iumlaut ] };
    key <AC10> { [ o, O, oacute, Oacute ] };
    key <AC11> { [ apostrophe, quotedbl, otilde, Otilde ] };
    key <AB01> { [ z, Z, zabovedot, Zabovedot ] };
    key <AB02> { [ x, X, zacute, Zacute ] };
    key <AB03> { [ c, C, cacute, Cacute ] };
    key <AB04> { [ v, V, oe, OE ] };
    key <AB05> { [ b, B, dead_breve, asciitilde ] };
    key <AB06> { [ k, K, dead_abovering, asciitilde ] };
    key <AB07> { [ m, M, dead_macron, asciitilde ] };
    key <AB08> { [ comma, less, dead_cedilla, asciitilde ] };
    key <AB09> { [ period, greater, dead_abovedot, asciitilde ] };
    key <AB10> { [ slash, question, questiondown, asciitilde ] };
    key <CAPS> { [ BackSpace, BackSpace, BackSpace, BackSpace ] };
    key <LSGT> { [ minus, underscore, endash, emdash ] };
    key <SPCE> { [ space, space, space, nobreakspace ] };
    include "level3(ralt_switch)"

  • Keyboard layout and Sun Ray

    Hi all,
    We're using the Sun Rays in a VDI environment, but there is a mixture in keyboard layouts: qwerty and azerty.
    The session detects the correct keyboard layout, but it doesn't pass it to uttsc.
    Is there any way to detect the keyboard layout and pass it manually?
    Regards,
    Wouter

    Hi,
    You can use this setting directly in the VMware guest:
    http://support.microsoft.com/kb/322042/en-us

  • Custom keyboard layout without root

    I would like to make "simple" change to my keyboard layout. I want to use only numpad for numbers, and insert symbols from top row without holding shift.
    Now I know I can just edit/create new layout by editing files in /usr/share/X11/*, but maybe someone have better idea? Maybe this kind of layout exists?
    The most ideal way would allow me to do it even if I do not have root access. For example in XFCE and zshrc.

    You can use xmodmap and put it in .xinitrc.
    See https://wiki.archlinux.org/index.php/Xmodmap and "man xmodmap" for details.
    If your DE doesn't use .xinitrc, it may have it's own method of setting up custom keyboards.

  • Custom keyboard shortcuts and editing multiple layers in Flash CS4

    Hi, all -
    CS3 -> CS4 transition newb here who's getting increasingly frustrated with the new motion tweens; however, for this project, I'm working in a 3D space and require using them, so I'm dealing with this bit by painful bit. I found the tip about Split Motion, but first question: how do you apply Split Motion across several layers at the same time? I have six different tweens, and in CS3, I used to be able to shift-click or click-drag across frames and apply a command to all of them (for example, hit F5 to add frames), but Split Motion is requiring me to right-click on each and every layer. This is really laborious, and I worry about future animations that might be more complex.
    Similarly, I tend to add custom keyboard shortcuts to each of my Flash versions for commands I use frequently and don't want to right-click a menu for (such as "add motion tween") - however, I can't seem to find where to create a custom shortcut for either that, or Split Motion.
    Any and all help would be appreciated as I muddle through this. Honestly, guys, I WANT to like the new version and there's so many added features, but it's hampering my workflow so bad I want to pummel it with sticks.

    Hey there,
    I definitely hear you about Split Motion. There is an enhancement request for supporting multiple layers, and adding it as a keyboard shortcut. The first one is tricky, but the second one is not. I think there was hope that splitting motions wouldn't be necessary much (especially since you have to be careful when doing so when eases are involved), which is why the eventual need for more functionality related to split motion was realized a bit late in the schedule.
    Now regarding other operations, such as you mentioned F5 to insert frames - that and other operations (inserting certain types of property keyframes, F6, and so on) work just fine.
    You can apply a shortcut to Create Motion Tween in the custom keyboard shortcut dialog.  Not all operations in the program are available though (most context menu items aren't), which is why unfortunately why we don't see Split Motion yet.
    It might be possible to avoid Split Motion though with another workflow. What are you using the feature for?  Just curious in case I can help.
    Jen.

Maybe you are looking for