Simply withdraw your weapon, then sit immediately. If you do it too quickly or too slowly, then you won't have a glowing weapon. There is no need to make a macro for it.