nixos/old/scripts/keyboard-layout

6 lines
75 B
Bash
Executable file

#!/usr/bin/env bash
KBD=$(/usr/bin/xkblayout-state print '%s')
echo $KBD