I am using manjaro i3 and am looking into revamping some of the key mappings I have made. Currently I am using xcape, xmodmap, and setxkbmap commands to remap the following keys:

  1. caps to contol when held, escape when pressed
  2. swap semi colon and colon

I have done this with this setup script:

setxkbmap -option 'caps:ctrl_modifier'
xcape -e 'Caps_Lock=Escape'
xmodmap -e "keycode 47 = colon semicolon"

I wanted to ask for some help or advice for the additional changes I am looking to make since I have already broken my key mappings and had to reinstall my os to get back to square one when playing around with the print screen remapping listed below. The changes I am looking to make are the following:

  1. print screen --> disable or use as another super key
  2. left alt --> mode_switch key
  3. escape key --> tilde and backtick
  4. original tild and back tick --> backspace
  5. backspace --> delete
  6. disable home, end, insert, delete keys and map them to run some script
  7. mode_switch + h, j, k, l --> additional arrow keys
  8. mode_switch + backspace --> home
  9. mode_switch + delete --> end

What tools should I be using to acccomplish these remappings? Also, if anyone has some similar examples they have used in the past that would be really helpful too! Thanks in advance for any help.

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.