On 27 May 2010 09:54,  <orsch...@googlemail.com> wrote:
> Oh dear how bad has my english to be since nobody is understanding me right. 
> *g*
>
> Well second approach. Currently I'm using the following code to
> generate my statusbar:
>
> #set statusbar
> while true
> do
>   if acpi -a | grep off-line > /dev/null; then
>       xsetroot -name "Bat. $( acpi -b | awk '{ print $4 " " $5 }' |
> tr -d ',' ) | Vol. $(amixer get Master | tail -1 | awk '{ print $5}' |
> tr -d '[]') | $(date +"%a, %b %d %R")"
>   else
>       xsetroot -name "Vol. $(amixer get Master | tail -1 | awk '{
> print $5}' | tr -d '[]') | $(date +"%a, %b %d %R")"
>   fi
>   sleep 1s
> done &
>
> The point is now that I want to extend exactly this statusbar to
> display the layout I'm using, so either 'de' or 'pl'.
>
> So no, I don't want to get rid of it.
>
> Please say you understand what I intend. :)

Sorry I didn't read the full thread.

I guess

  setxkbmap -print

might provide you the info you need to grep to decide if its de or pl.

Cheers,
Anselm

Reply via email to