Added in 2.9
$kblayout
Returns the current keyboard layout language.
See also
/kblayout
.