# ray16

wasted blog

# ray16 RSS Feed

Change / remap alt to ctrl or mac like lxde

first run

# xkbcomp $DISPLAY xkb.dump

and then use nano to edit following entry in xkb.dump :

<LALT> = 37; // Remap LALT to LCTRL
<LCTL> = 64; // Remap LCTRL to LATL

save and quit from nano,

and run this command

# xkbcomp xkb.dump $DISPLAY

if you really want to remap the key like mac, then modified using following code :

<LCTL> = 133; // Remap LCTL to SUPER_Keys
<LWIN> = 37; // Remap SUPER_Keys to LCTL

and then run again second command above to make it apply

Leave a Reply