detect darkmodeswitch on prompt command