add those lines to your ~/.Xmodmap file keycode 50 = Shift_L Caps_Lock Shift_L keycode 62 = Shift_R Caps_Lock Shift_R