mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
12 lines
368 B
Bash
Executable File
12 lines
368 B
Bash
Executable File
#!/bin/sh
|
|
|
|
[[ $BLOCK_BUTTON -eq 1 ]] && `$DOTFILES/scripts/togglekeyboard`
|
|
[[ $BLOCK_BUTTON -eq 3 ]] && onboard &
|
|
|
|
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)}'
|