xmodmap

~/.Xmodmap
clear lock
clear control
add control = Caps_Lock Control_L Control_R
keycode 66 = Control_L NoSymbol NoSymbol NoSymbol

remove mod1 = Alt_L
remove mod4 = Super_L
add mod1 = Super_L
add mod4 = Alt_L
remove mod1 = Alt_R
remove mod4 = Super_R
add mod1 = Super_R
add mod4 = Alt_R

Comments