]> src.twobees.de Git - dotfiles.git/blob - stow/bin/.bin/i3status.sh
initial
[dotfiles.git] / stow / bin / .bin / i3status.sh
1 #!/bin/bash
2
3 i3status | while :
4 do
5     read line
6     LG=$(setxkbmap -query | awk '/layout/{print $2}')
7     if [ $LG == "br" ]
8     then
9         dat="[{ \"full_text\": \"LANG: $LG\", \"color\":\"#009E00\" },"
10     else
11         dat="[{ \"full_text\": \"LANG: $LG\", \"color\":\"#C60101\" },"
12     fi
13     echo "${line/[/$dat}" || exit 1
14 done