12 lines
267 B
Bash
Executable file
12 lines
267 B
Bash
Executable file
#!/bin/sh
|
|
# Get current keyboard layout
|
|
|
|
layout="$(setxkbmap -query | awk '/layout/{ print $2 }' | sed 's/latam/la/')"
|
|
|
|
if [ "$?" != 0 ] ; then
|
|
echo "Failed to get layout"
|
|
exit 1
|
|
fi
|
|
|
|
echo "$layout"
|
|
# notify-send -u low --replace-id=12 " Layout" "$layout"
|