#!/bin/sh (setxkbmap -query | grep -q "layout:\s\+us") && setxkbmap fi || setxkbmap us