Application-specific default keyboard layout in Mac OS X
You can write an Applescript that constantly runs and checks if an app has focus and if it does then it sets the keyboard layout to one layout and when it detects that the app does not have focus it switches the layout back again. Have it run at login.I can not help with writing the app, but that would be the solution.Here are a couple of related articles that I found:.
------
How do I get current keyboard layout?
Maybe this is version dependent, but on my machine that uses setxkbmap 1.3.0 the following command works:Note that depending on your need it may be useless to know only the layout : for instance the Dvorak variant of the US layout is quite different than the default QWERTY. The -query option of setxkbmap gives both the layout and the variant, as different fields :.
------
Does Linux have a US international keyboard layout exactly like the windows version?
The ability to type ccedilla the way you want is not present via keyboard layouts in Linux. But there is another way:
------
How do I install a keyboard layout?
First you should give the layout variant a name; see /usr/share/X11/xkb/symbols/se for examples. Then add it to /usr/share/X11/xkb/symbols/se and add a corresponding entry to /usr/share/X11/xkb/rules/evdev.xml.Edit:I tested the steps in the "update" section of your question, and it worked fine for me after having rebooted. The layout is shown in a submenu of Swedish (Sweden).For testing subsequent changes, rebooting is not necessary, but this command should suffice:Edit II:I have a theory (untested) on why the layout is not working as robustly as you would wish. Try to change the two first lines in svorak-a5:to.
------
what keyboard layout does a 4 row french musette accordion use?
In my experience, they are available in B or C system. Depending on the specific brand and what the dealer like to carry
------
How can I type "can't without pressing SPACE on US International keyboard layout
I had the same problem, using Canadian English layout instead you get the best of both worlds. Makes sense when you think about it :)You can do everything just like the american international except you do not have to press space for the apostrophe o/
------
Which keyboard layout do you prefer for programming?
I see you do not list the APL keyboard. (Does anyone still use APL?) Now, _that's_ efficiency.Having tried Dvorak, I am not convinced that any possible gain in efficiency is worth the retraining time. Even using keyboards for other languages (Classical Greek, Georgian, Russian) is a tremendous pain -- though perhaps simply because I am not fluent in any of them. There is one thing I do do for my hands, though: I alternate mouse chirality. This balances the stress mouse usage puts on one between my left and right hands. As a bonus, it's great fun to watch someone (even left-handers) attempt to use a left-handed mouse.
------
How to make ^ and non-dead-keys on Windows 7 with German keyboard layout
You can use Microsoft's Keyboard Layout Creator to modify your layout. Once you've downloaded and installed, do this:Done!
------
How to initiate automatic execution of commands upon keyboard layout switch?
I am afraid switching sources is a built in function of Unity, which is not available as a cli option from outside. However, that does not mean we have no options to achieve exactly what you want.Replacing the original shortcutInput sources can be fetched by the command:Output looks like:The layout can be set with the command:This way, we can replace the keyboard shortcut by a scripted version to switch to the next language and run your command at the same time. Test- run the script by the command:and optionally:Your layout should change and your commands should run.If all works fine, open System Settings, go to "Keyboard" > "Shortcuts" > "Typing". Click on the shortcut to switch source (on the right, to set the shortcut), and hit backspace to disable the shortcut. Now add the same shortcut to custom shortcuts: choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "" and add the command:To the shortcut you just disabled in step 2. Additionally you can set a shortcut to move the other way around (set previous source from the list):That's it. Now changing language is combined with the command you want to run along.Whenever your shortcut is pressed, The script is called, looking what is the current language, by the command:The script subsequently moves to the next one, or the previous, depending on the argument, by the command:Using gsettings is extremely low on juice, and by combining the command to set the language with your commands, the script only runs when changing language. I believe that is the most elegant way and, although you wo not notice in your electricity bill, on long term the lowest on resources. The choice between a constantly running process, using the API, or a run-when-called option is a matter of taste however.Note also that the script first changes language and then runs the other commands. There is no noticeable difference in response in the two answers whatsoever.