Jump to content

Recommended Posts

Posted

Hi there

 

I'm playing attack of the b-team on ubuntu, but I'm not able to open the morph selector. I think it's because I have a German keyboard where the key to open the selector would be the ß-key (two left of the backspace), but minecraft does not recognize this key. Also in vanilla minecraft I'm not able to bind a function to this key, because it just says NONE when I press it. I also can not bind the selector to any other key. For example when I play aotb-t in windows and I go to options -> controls -> morph and set it to any other key, it still opens when I press "ß".

 

Has someone an idea of how to fix this?

Posted (edited)

You could try remapping the keys using xmodmap and xev, both should come preinstalled in ubuntu.

 

xev is used to display info about pressed keys, xmodmap is used to remap them.

 

So for example the key information for [ and ] (the keys used to scroll through the morph menu)

On my keyboard is:

KeyRelease event, serial 37, synthetic NO, window 0x3600001,
    root 0x80, subw 0x0, time 143727145, (-201,75), root:(393,391),
    state 0x0, keycode 34 (keysym 0x5b, bracketleft), same_screen YES,
    XLookupString gives 1 bytes: (5b) "["
    XFilterEvent returns: False

KeyPress event, serial 37, synthetic NO, window 0x3600001,
    root 0x80, subw 0x0, time 143727261, (-201,75), root:(393,391),
    state 0x0, keycode 35 (keysym 0x5d, bracketright), same_screen YES,
    XLookupString gives 1 bytes: (5d) "]"
    XmbLookupString gives 1 bytes: (5d) "]"
    XFilterEvent returns: False

What you would need to do is run xev from the terminal then press your 'ß' key, take note of the keycode.

Then you can remap it using xmodmap (substitute 20 for the keycode of your 'ß' key)

xmodmap -e "keycode 20 = bracketleft"

This will only work for the current session, so if you reboot you will lose these changes.

To make it work across reboots you need to export the changes to a file using:

xmodmap -pke >~/.xmodmap

Then to load your remaps at boot add the following line to the end of ~/.bashrc

xmodmap .xmodmap
Edited by Kr0nZ

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...