title: Gnome - Determine keyboard layout
body: <p>I was wondering how it might be possible to determine the currently used keyboard layout in a gnome session, when the user switches keyboard layouts via an applet. As of now I do not care, what programming language or libraries (gtk,x,...) I have to use for it. </p>
  
  <p>I asked a similar question before on: 
  <a href="https://askubuntu.com/questions/155879/how-to-get-current-gnome-keyboard-layout-from-terminal">https://askubuntu.com/questions/155879/how-to-get-current-gnome-keyboard-layout-from-terminal</a></p>
  
  <p>Unfortunatelly nobody could solve the issue, which is why I wanted to ask you. How do you determine the current keyboard layout in your programms/scripts.</p>
  
  <p>Thanks</p>
  
  <p>ftiaronsem</p>