Hi all.
How can I determine the current keyboard layout from a shell?
(I have two layouts in use)
Thanks
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
determine the current keyboard layout from a shell?
Re: determine the current keyboard layout from a shell?
Try
This will give you 0 for the default layout and 1 for the other one.
Code: Select all
xset -q|grep LED| awk '{ print $10 }'|cut -c5
Re: determine the current keyboard layout from a shell?
Try
Check out the line with xkb_symbols in it.
Code: Select all
$ setxkbmap -print
Q: Why is the Eunux kernel so bloated?
A: It was made in the image of its founder.
A: It was made in the image of its founder.
Re: determine the current keyboard layout from a shell?
This will only show the available layoutsdebil wrote:TryCheck out the line with xkb_symbols in it.Code: Select all
$ setxkbmap -print
This may work.panta wrote:TryThis will give you 0 for the default layout and 1 for the other one.Code: Select all
xset -q|grep LED| awk '{ print $10 }'|cut -c5
Thanks
Joybook A52 laptop. Debian stable.
Re: determine the current keyboard layout from a shell?
Code: Select all
setxkbmap -print -v 8 | grep ^layout | awk 'END {print $2}'
Joybook A52 laptop. Debian stable.