Change the kernel keymap and xkbd keyboard layout?

I'd like to remap
CTRL+(Left,Right,Up,Down)
to
Begin,End,PgUp,PgDown
And i've to say that i almost succeded, but probably there's a better way.
For the tty, i made a modified it.map.gz called itCtrlArrows.map.gz,
put it into /usr/share/kbd/keymaps/i386/qwerty/
modified /etc/vconsole.conf accordingly and rebooted.
Ttys works, fine.
For Xorg i've had to use xbindkeys with something like:
"xvkbd -xsendevent -text '\[Home]'"
m:0x14 + c:113
Control+Mod2 + Left
"xvkbd -xsendevent -text '\[Shift]\[Home]'"
m:0x5 + c:113
Control+Shift + Left
"xvkbd -xsendevent -text '\[End]'"
m:0x14 + c:114
Control+Mod2 + Right
"xvkbd -xsendevent -text '\[Shift]\[End]'"
m:0x5 + c:114
Control+Shift + Right
"xvkbd -xsendevent -text '\[Prior]'"
m:0x14 + c:111
Control+Mod2 + Up
"xvkbd -xsendevent -text '\[Shift]\[Prior]'"
m:0x5 + c:111
Control+Shift + Up
"xvkbd -xsendevent -text '\[Next]'"
m:0x14 + c:116
Control+Mod2 + Down
"xvkbd -xsendevent -text '\[Shift]\[Next]'"
m:0x5 + c:116
Control+Shift + Down
It works too, but it is an highly inefficient solution.
The tty keyboard layouts are really easy to hack, could this one be done somehow with an xkb keyboard layout?
How?
Last edited by kokoko3k (2014-09-09 19:14:26)

I was just trying to figure this out myself and got to the realization that keyboard layout handling in Linux == crap and total mess.
xvkbd doesn't really works as you expect, try for example your mapping in Epiphany or Nautilus.
From what I gather you really can't map key combination with CTRL to a keysym in X as CTRL isn't a modifier key.
What you can do is to set a modifier key and the best way to do that would be to patch xkeyboard-config (I didn't tried yet, just looked in the code) but if you only got one keyboard layout then you can also use xmodmap and of course both method won't work in Wayland.
See
http://cgit.freedesktop.org/xkeyboard-config (notice in symbols/us that English (US) layout doesn't map ALT_R to ISO_Level3_Shift, "level3(ralt_switch)" )
http://askubuntu.com/questions/5095/typ … mbinations

Similar Messages

  • [8.1 pro update1] Windows KEEPS changing and reinstalling keyboard layouts regardsless of IgnoreRemoteKeyboardLayout

    Windows 8.1 is driving me nuts beyond believe once again. I have 8.1 Pro update 1 English, installed from the VLK iso from our Volume License / SPLA account. As we are a Dutch company, the Location is set to The Netherlands, as well as the date/time format.
    Therefore in my keyboard settings the language is Dutch (NL) but I set my keyboard layout to US, as below:
    As you can see there are no other languages our installed. This worked for years with Windows 7 and before with XP. Windows 8.1 however KEEPS changing my keyboard layout to plain Dutch making my keyboard unusable. The language bar in the systemtray, or whatever
    it's called in this OS, shows THREE layouts, which are actually 'selectable' and work as if they were installed. However, they are not 'really' installed, as per the screenshots above.
    This is driving me completely mad. Why on earth is Windows making descisions for me which I should be making myself? In addition, in my oppinion Windows should NEVER change somthing as trivial as a keyboard layout by itself. People don't change switch keyboard
    even when logging on to a remote system that has a different layout configured. Whoever came up with this 'automatic switching per application' idea once again had no clue of real-life usage at all.
    I've added those two languages I do NOT want to my keyboard layouts and removed them. Sure they are gone then, and as only language NLD with layout US is left, the language bar in systray is gone as well. After a few days all three are back, and my keyboard
    is producing wrong characters again.
    I've tried with regvalue HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout\IgnoreRemoteKeyboardLayout set to 1, to no avail at all. It just keeps changing. This should help to prevent my keyboard when changing when I RDP to one of my servers.
    The advanced settings in Language don't help either:
    'let me set a different input language for each app window' is unticked.
    Override for default keyboard is now set to Dutch - US, like I want it. Doesn't help either.
    I cannot reproduce it on demand, settings do NOT change when connecting to my RDP server(s). They do NOT change when I open any of my used programs, being IE, Chrome, CMD.exe, notepad and a few others. It shouldn't either as I disabled the 'keep settings
    per application'.
    I have changed the keyboard shortcut from alt-shift or whatever it was to 'none'.
    How to prevent Windows 8.1 completely from changing the keyboard layout I use? Is there any way to check WHY or WHAT actually changes my keyboard?

    This might be really late to this post but I've been having this issue while playing games, particularly those which are complex enough to require Control, Alt, Shift. At first like some people here suggested
    Windows Key + Space was the cause, but even after removing all alternate layouts (for reference, I want the UK layout, but it was switching to the US Layout) it was persisting.
    This post pointed me in the right direction, go into your Language Options
    > Change Override (Advanced). At this stage I've noticed there is the Switching input methods section, look for
    Change language bar hot keys and here I fount Alt + Shift
    was being used for switching Between input languages - a key combo I'd probably hit quite often just purely by accident. You can change the key sequence to no binds.
    I haven't fully tested it, but it appears to be working for now - and I hope its an extra option for people to look at if they're running into this issue.

  • TS3048 I changed the battery in my wireless keyboard and checked the batteries to make sure that they work.  When I returned to my computer (the computer was already on) the keyboard would not work, no response at all.  What do I do?

    I changed the battery in my wireless keyboard and checked the batteries to make sure that they are good, I left the computer on while I changed the batteries. When I returned to the computer, the computer does not acknowledge the keyboard so I can't do any diagnostics. What do I do?

    Hold the power key on the keyboard down for 5 secs to power off,  tap the power button once to start.   It should connect automatically.

  • TThere are now two keyboard layouts" software and hardware" keyboard layout. Why does hardware one a

    Under Settings'/general/keyboards, There are now two keyboard layouts" software and hardware" keyboard layout.  I can easily just pic US in the software one, but the hardware one has three style choices of only arabic keyboards and it requires me to pick one.  So I still get arabic when I hit the globe.  If anyone knows how to solve this one (get rid of it!) i will respect u forever.
    On this discussion board i always hear, go to settings  keyboard and change to US. As explained above, that does not solve the problem, nor many other users I read on here have the same issue as I do.  VERY ANNOYING.

    You are might knight in shining armor.  If u road on,a white steed with a glass of grand marnier I'd marry u! Lol. Oh yea. Im already married to one. Seriously thanks dude, u have no idea how much this has driven me nuts that i couldn't even see an edit button?  Thanxs again!
    Lisa

  • How do i change the administrator name and password when i forgot both of them

    how do i change the administrator name and password when i forgot both of them?

    Find the user name and then reset the password.
    Start the computer,then press and hold down command and R keys to start into recovery partition.
    When you see the Apple logo, release the keys.
    Wait until  OS X Utilities window shows up.
    Move the mouse to the menubar at the top and click "Utilities", then select "Terminal"
    from the drop down.
    Terminal window will appear.
    Type in   resetpassword   and press enter on the keyboard.
    Leave the Terminal window open.
    Reset Password Utility window will open with Macintosh HD selected.
    Select the user account from the popup menu box under “Select user account”.
    Note down the user account name.
    Enter a new password.
    Reenter the new password for the user.
    Note it down.
    Enter a hint.
    Click the "Save" button.
    Click  in the menubar and select Restart.
    Log in.
    If Keychain dialog box appears, select “Create New Keychain”.

  • I have an IPad mini and I changed the Apple ID and the password almost one year ago and, for a while, a message asking me to sign in to iCloud pops- up constantly. My iCloud account is registered with an old email and password. I do not remember the

    I have an IPad mini and I changed the Apple ID and the password almost one year ago and, for a while, a message asking me to sign in to ICloud pops- up constantly. My ICloud account is registered with an old email address and password. I do not remember the password to my ICloud account, and ID address that my ICloud account is registered under is an old email adress which is deleted right now (the old mail account is deleted). I don’t have a rescue email adress and I don’t know the answers to the security questions, so I have no way of changing the ICloud password. A message asking me to sign in to ICloud pops up constantly, but I always just hit cancel. However, now I am unable to access Find My IPad. How do I get my ICloud account changed and registered to be under my current Apple ID (email) and password? It is possible to set the device as New Ipad?

    Welcome to the Apple community.
    If you are unable to remember your password, security questions, don’t have access to your rescue address or are unable to reset your password for whatever reason, your only option is to contact Apple ID Support, upon speaking to an operator you should explain that your problem is related to your Apple ID, this way you will not be charged for assistance, even if you don’t have an AppleCare plan.
    The operator will take you through some steps you may have already tried, however they need to be sure they have exhausted all usual approaches before trying to reset your account, so you should try to be helpful and show patience with the procedure.
    The operator will need to verify they are speaking to the account holder and may ask you some questions that only the account holder could know, and you will need to answer them if the process is to proceed.
    Once the operator has verified your identity they will send a message through to your device which contains an alpha numeric code, which you will need to read back to them.
    Once this has been completed they will send an email to your iCloud email address after a period of 24 hours, so you should check that mail is enabled in your devices iCloud settings.
    Upon receipt of the email, use the reset link provided to reset your password, after which you should be able to make the adjustments to iCloud that you wish to do.

  • How do I change the copyright info and links in collection pages?

    Can anyone tell me how I can change the copyright info and links on a collection page using the new updated Public Site Manager?
    1. When I click on 'Configure selected collection' there doesn't seem to be an option to edit copyright information and I've tried editing the info in Settings > Copyright Notice but it doesn't filter through to the collection pages.
    2. When I click on 'Configure selected collection' the links tab is empty but on my collection page there is a link called 'website' which links to our University website but the url is incorrect so I need to change it.
    Example screenshot -
    Thanks

    Also when I add a url list to a collection page and then delete all the links I'm left with a blank url list showing in preview page in iTunes. This should not happen, the admin guide says -
    "To delete a collection page URL list, delete all the links in the list. When you publish, if you have a URL list with no links, iTunes U Public Site Manager hides the empty URL list."
    It doesn't. At least it doesn't for me when I preview the collection in iTunes.
    Example screenshot

  • If I change the apple id and password to a new apple id will it erase my phone?

    if I change the apple id and password to a new apple id will it erase my phone?
    A friend of mine has a phone that is set up on someone else's apple id. We want to change it to his new apple id and keep all the info on the phone. and back up to icloud.
    I am thinking if I just change the apple id account it will back up the phone on the new account?
    Am  afraid that it may erase everything?

    No, but why are you changing your Apple ID? Any apps and other content that you have purchased are forever tied to that Apple ID and you will have to purchase them all again.
    To erase the phone for use with another Apple ID, follow these instructions: What to do before selling or giving away your iPhone, iPad, or iPod touch - Apple Support

  • We have an Apple id that has a bunch of purchased music on it, but our children have changed the account details and the password, and the secret questions and now we can't remember any of that information, even our birthdays are not correct. HELP???

    we have an apple ID that was set up in my wife's name. The kids have changed the account details and no-one can remember the password. They have also changed the account data and none of our birthdays are recognised by apple. We have no way of re-setting the account. The secondary email address we used when setting up the account is no longer accessible so even this option doesnt work..
    What can we do as we have a large amount of purchased music on this account???

    1. Don't confuse "Apple ID" with iTunes Account ID.  You can have many Apple IDs but only one iTunes account active at a time.
    2. If you "changed" your iTunes account ID, you actually have 2 accounts - one under the old name plus the new name.
    3. You can't merge the accounts - they remain separate.  Apps purcahsed under the old account name will update ONLY WHEN THE PHONE IS SIGNED IN TO THE OLD ACCOUNT NAME  and visa versa.
    4. Likewise, you can sync only the apps, music, media purchased under the account the phone AND iTunes are signed in to.

  • Is there a way to change the font size and color of text in the calendar app?

    Does anyone know a way of changing the font size and color of text in the calendar app that comes with the iPad 2?  It is very hard to see the small gray numbers on the calendar.  Thanks

    Looks like you didn't get a reply on your post, but it is still a problem.  Font size is supposedly changeable via "Accessibility" in Settings, but it doesn't work.  You can turn on "Zoom".

  • [SOLVED]How to patch the kernel? And other questions

    Like the same user who started this thread I'm suffering from hibernation resuming troubles using kernel 2.6.38. In that thread was posted a soluttion that involves patching the kernel.
    The patch to apply is this:
    http://git.kernel.org/?p=linux/kernel/g … e3e9fc8684
    Waiting for the bug to be corrected and a new version supplied is not an option, because this laptop is my main computer and I heavly rely on hibernation.
    Here's my trouble now. I don't know if it is possible to patch without recompiling the whole kernel, or it has to be compiled with that patch applied. I have seen the archlinux's wiki guide about compiling the kernel, but found nothing about applying patches (maybe I didn't searched with enought depth).
    In case there is needed a full compilation, should I use the vanilla kernel, the Arch Linux one or any of the AUR ones (I said AUR because they're the first that came to my mind)? Should i expect a performance gain with this (apart from fixing the hibernation bug)?
    Maybe i'm just doing a bunch of dumb questions, and the only thing I need is to search deeply on the wiki. In that case, please tell me. If not, I rather get some answers around kernel patching and / or compiling questions.
    Edit: In addittion, it is possible that all this questions are just newbie ones, I don't know, but as I am willing to learn from this I will appreciate any info or documentation about it.
    Thank you.
    Last edited by ethail (2011-04-12 06:30:48)

    From the source tree (/usr/src/linux-whatever) execute
    patch -p1 < /path/to/fix.patch
    then recompile kernel from the source tree.
    Basically that consists of executing the following commands from the source tree:
    make menuconfig
    make
    make modules_install
    cp -v System.map /boot/System.map-CUSTOM
    cp -v arch/x86/boot/bzImage /boot/vmlinuz-CUSTOM
    mkinitcpio -k 2.6.38-CUSTOM -g /boot/kernel-CUSTOM.img
    and you need to add menu entry in /boot/grub/menu.lst
    -k 2.6.38-CUSTOM should corespond to /lib/modules/2.6.38-CUSTOM (replace 2.6.38-CUSTOM with the name of your module directory, name depends on the kernel version and suffix that you gave in menuconfig). Regarding kernel configuration in menuconfig - I can't help you, you could use arch stock kernel config (zcat /proc/config.gz > /usr/src/linux-whatever/.config)
    I do these kind of things this way - maybe someone else have a more elegant solution.

  • How to change the font size and style on run time

    dear all
    i try to change the font style and font size on runtime. I did the following:
    1- i created an item(:font_size) in which i will write the size of the font for the the other item ('customer_name')
    2 on the post_change trigger for 'font_size' i write this code
    SET_ITEM_PROPERTY('customer_name',FONT_size,(:font_size);
    i write 12 then then font size changed , then i write 18 , the size does not change. and when i write any value , no change happens. I do not know why
    the second problem is how to change the font style
    i made three checkbooks (bold,italic,underline)
    on the trugger when_checkbox_checked i write
         IF :BOLD = 'B' THEN
         SET_ITEM_PROPERTY('N_SAMPLE',FONT_STYLE,'BOLD');
         ELSE
    SET_ITEM_PROPERTY('N_SAMPLE',FONT_STYLE,'REGULAR');
         END IF;     
    no change happend at all.
    please help

    Hi friend,
    it's a really really strange tip... May be it's a Forms bug? I've tried with set_item_property..and.. you're right, it doesn't work..
    So.. you can try making this:
    - create a visual attribute with an specific font size....
    - use the
    SET_ITEM_INSTANCE_PROPERTY('block.item',CURRENT_RECORD,VISUAL_ATTRIBUTE,'you_visual_attribute');
    and call it from psot-change....
    It works
    Hope it helps,
    Jose.

  • Which option do I have to select If I buy the latest iPad with cellular feature for international use? If I choose verizon can I just change the sim card and insert one from another country?

    Which option do I have to select If I buy the latest iPad with cellular feature for international use? If I choose verizon can I just change the sim card and insert one from another country?

    I would guess you need the A1460 model
    see here
    http://www.apple.com/ipad/LTE/

  • How do I change the font size and color in a text box?

    How do I change the font size and color in a text box?

    Really frustrating to find the first time but simple once you figure it out. I think I spent hours trying to find this. Simply right click on a blank spot in the toolbar up top and select Properties Bar. There it is! The available properties will change depending on whether you have the content (text) selected or the box itself.
    I haven't found a way yet to make it show up as a regular part of the toolbar. It floats around and gets in the way so I don't leave it on and then have to open it again when I need it. Again - frustrating; but at least it's there!

  • How do I change the font size and color in my e-mail?

    I'm using the regular MAIL application on my Macbook (OSX 10.5.5) and I'm wondering how to change the font size and color of my incoming and outgoing mail.
    Any suggestions?
    thanks!

    I'm using the regular MAIL application on my Macbook (OSX 10.5.5) and I'm wondering how to change the font size and color of my incoming and outgoing mail.
    For outgoing email you the Fonts and Colors buttons found in the New Message pane (note that settings you make in Mail > Preferences do not affect outgoing messages).

Maybe you are looking for

  • Itunes, Multiple Macs, Iphones and Icloud account vs.NAS help!

    Hi all I have a problem with the way im using Nas and how i manage multiple Itunes across multiple machines and Iphones. Background. Network - I have a Synology 2Tb NAS storage solution which is connected via a Wifi, ethernet router & modem to the ot

  • Oracle 8i JServer leaks 100Mb per hour

    The 8.1.5 aurora jvm appears to leak a significant amount of memory whenever a session is ended or a new session is created. Is this a known bug? Is there a workaround? In particular, this is a problem for job queues that execute java. In only a few

  • Parse attributes of a XML file

    Hi My XML file is in the follwoing format I have to extract all the autoloadid's at the CFTSContract level so my sql output needs to be some thing like this AUTOLOADID 1125 1126 1127 1128 etc ........ can any please help me how to right a sql to extr

  • Error testing Webservice in XMLSPY

    Hello guys, I have a scenario Webservice -> XI -> Proxy Synchronous. I have created the webservice, and the URL is correct. I have a problem in the proxy because is expecting the Message Type and in the XML appears the name of Message Interface. I ha

  • Cannot Save Preference??? (EAR4)

    I cannot save preference for every and all settings in the Tools --> Preferences. When I changed some values, click OK and open the preference again, all the old values re-appear.... Is that preference cannot save at this moment???