Adding if statement before doing xmodmap