1 2 3 4 5 6 7 8 9 10
#!/bin/bash set -euo pipefail LANG=$(setxkbmap -query | grep layout | awk -F ' ' '{print $2}') if [ "$LANG" = 'us' ]; then echo "%{T5}%{T-}" else echo "%{T5}%{T-}" fi