LEVAI Daniel <l...@ecentrum.hu> writes: > Hi!
Hi, > Alexander's mail made me remember that I was wondering about this for a > while. > I'm setting up my keyboard layout with `setxkbmap -layout 'us,hu'` so I > can comfortably switch between layouts with alt+shift. But I can't seem > to figure out what is the current layout. setxkbmap -query only shows > 'us,hu', and no amount of -v would display the current, which could be > shown in certain places like tmux's or my wm's status bar. > Is there a way to do this before I punch in some characters to test it? > > > Daniel I don't have a direct answer to your question, but I use setxkbmap ... -option 'grp:shift_toggle,grp_led:scroll'; this allows me to switch between layouts pressing both shift keys, the "scroll lock" tells me which layout I'm using. Hack taken from kbd(4). -- Jérémie Courrèges-Anglas GPG fingerprint: 61DB D9A0 00A4 67CF 2A90 8961 6191 8FBF 06A1 1494