1 2 3 4
#!/bin/sh layout="$(bat /etc/vconsole.conf | grep XKBLAYOUT | awk -F'=' '{print toupper($2)}')" printf "%s " "$layout"