cfg/.config/i3blocks/keyboard

12 lines
194 B
Text
Raw Normal View History

#!/bin/bash
set -euo pipefail
which getxkblayout >/dev/null 2>/dev/null || {
printf '\uf071 getxkblayout package missing'
exit 1
}
printf '\uf11c '
getxkblayout | awk '/short/{ print $2 }'