#!/bin/sh

[[ $BLOCK_BUTTON -eq 1 ]] && `$DOTFILES/scripts/togglekeyboard`

layout=$(setxkbmap -query | grep 'layout:' | awk '{print $2}')
variant=$(setxkbmap -query | grep 'variant:' | awk '{print $2}')

short=`([ "$variant" ] && echo $variant || echo $layout) | cut -c1-2`

echo -e "$short\n$short" | awk '{print toupper($0)}'
