I am on a lenovo thinkpad running manjaro and I want to swap the right alt
key and the prtsc
key using setxkbmap
. Lenovo puts the prtsc where right alt should be and is driving me nuts.
I followed the top answer from
Use setxkbmap to swap the Left Shift and Left Control
and made my myswap
file to be
partial modifier_keys
xkb_symbols "swap_ralt_prsc" {
replace key <RALT> { [ Print ] };
replace key <PRSC> { [ Alt_R ] };
};
but it doesn't work. It only works to make right alt become print screen but the print screen button doesn't become right alt. So maybe the 2nd replace line is not correct? I checked other examples online and I believe the syntax is right.
Am I missing something? I think some computers have prtsc paired with sysrq. Would that matter in this case?