Hi Mohsen, Switching keyboard layouts has nothing to do with awesome. if you want to be able to change your keyboard layout with "alt + shift" the best way to do that is to execute the following command (either via your .xinitrc or your rc.lua or any other way you like) :
setxkbmap -layout 'us,ir' -option grp:alt_shift_toggle,compose:ralt the above command lets you to change keyboard layouts with "left alt" + "shift" and uses "right alt" as compose key for some special persian characters if you need. And there are plenty of ways to place a keyboard widget for awesome, I suggest using a package called "kbdd" that makes per window keyboard layout possible (with help of dbus), and there is also an article in awesome wiki about that. Best regards