Find the answer to your Linux question:
Results 1 to 4 of 4
Using Mint 14 XFCE I want to change the key funtion of the Windows key ( Super L) to "left shift". I've obtained the key codes for these keys. Is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    oxf
    oxf is offline
    Linux Newbie
    Join Date
    May 2009
    Location
    Oxfordshire, UK
    Posts
    187

    How to re-assign key functions?


    Using Mint 14 XFCE

    I want to change the key funtion of the Windows key ( Super L) to "left shift". I've obtained the key codes for these keys. Is there a simple way of doing this? Are the key assignments held in a perticular file that can be edited to reassign them?

    Thanks
    Katelyn

  2. #2
    Just Joined!
    Join Date
    May 2011
    Location
    Central FL
    Posts
    91
    xmodmap can do this.

    e.g., my re-map of left-capslock to "control" is as follows in my .xmodmaprc:
    Code:
    !
    ! Swap Caps_Lock and Control_L
    !
    remove Lock = Caps_Lock
    keysym Caps_Lock = Control_L
    add Control = Control_L

  3. #3
    oxf
    oxf is offline
    Linux Newbie
    Join Date
    May 2009
    Location
    Oxfordshire, UK
    Posts
    187
    Quote Originally Posted by dayid View Post
    xmodmap can do this.

    e.g., my re-map of left-capslock to "control" is as follows in my .xmodmaprc:
    Code:
    !
    ! Swap Caps_Lock and Control_L
    !
    remove Lock = Caps_Lock
    keysym Caps_Lock = Control_L
    add Control = Control_L
    Thanks for the reply. I'm a little confused by what you mean.
    .xmodmaprc doesn't seem to exist. Do I have to create it?

    Anyway i don't so much want to swap functions but simply assign Left **** to the Windows key Super_L
    The key code is 133 so in Ubuntu I used this method which worked:
    keyboard - How do I remap certain keys? - Ask Ubuntu
    In Mint 14 this doesn't seen to work anymore (but Mint is based on Uubuntu)

    Sorry for being so dense!

  4. #4
    Just Joined!
    Join Date
    May 2011
    Location
    Central FL
    Posts
    91
    Quote Originally Posted by oxf View Post
    .xmodmaprc doesn't seem to exist. Do I have to create it?
    Yep

    Quote Originally Posted by oxf View Post
    Anyway i don't so much want to swap functions but simply assign Left shift to the Windows key Super_L
    That's exactly what a "swap function" is - telling a physical key to act (or have the function) of another. It doesn't mean that A is now B and B is now A, rather just that A "now acts (and sends the signal of" B. B can still be B.

    There are most likely tons of ways to accomplish this. This is just the one I am familiar with (and use).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •