Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've got ubuntu running on chromebook using crouton.

How do I map the search key to the ctrl action.

Similar to this, swapping the caps lock key and the ctrl key.

/usr/bin/setxkbmap -option "ctrl:swapcaps"

Update

I've still had no luck :-(, I've swapping the like this, in a ~/.Xmodmap file:

clear control
clear mod4

keycode 105 =
keycode 206 =

keycode 37 = Control_L NoSymbol Control_L
keycode 134 = Control_R NoSymbol Control_R
keycode 133 = Super_L NoSymbol Super_L

add control = Control_L
add control = Control_R
add mod4 = Super_L

But still no luck, any help suggestion would be much appretaited.

share|improve this question
add comment

2 Answers 2

I have Acer C720 Chromebook, here is what I did to map search key to control

You can use xev to check the keycode for your search key, and which key it is mapped to. For my chromebook, search key is mapped to Super_L by default.

First, create file .Xmodmap at your $HOME directory with content below

clear control
clear mod4
keycode 133 = Super_L
add control  = Control_L Control_R Super_L
add mod4 = Hyper_L Super_R

Next, need to make sure xmodmap load ~/.Xmodmap file when you start you linux using sudo startxfce4 in chromebook terminal. Create file ~/.xinitrc with content below

if [-s ~/.Xmodmap]; then
    xmodmap ~/.Xmodmap
fi

Last step is to logout your xfce environment and restart it from chromebook terminal.

For reference, you can look at Section Special keys/signals from Here And another reference from crouton: Here

share|improve this answer
add comment

On my Pixel the search key is defaulted to the Super key. I have not tested this but I assume something like

/usr/bin/setxkbmap -option "super:ctrl"
share|improve this answer
    
This will not work because super:... is not an option for setxkbmap (all options can be found in /usr/share/X11/xkb/rules/base.lst) –  Gerhard Burger Jan 24 at 7:11
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.