Skip to content

Instantly share code, notes, and snippets.

@KristobalJunta
Created December 14, 2016 12:59
Show Gist options
  • Select an option

  • Save KristobalJunta/fcb39c97d028a2487120594f107a4425 to your computer and use it in GitHub Desktop.

Select an option

Save KristobalJunta/fcb39c97d028a2487120594f107a4425 to your computer and use it in GitHub Desktop.
A script to display current keyboard layout in i3status
#!/bin/bash
# a shell scipt to prepend i3status with more stuff
i3status --config ~/.i3status.conf | while :
do
read line
LG=$(setxkbmap -query | awk '/layout/{print $2}')
echo "LG: $LG | $line" || exit 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment