Created
December 14, 2016 12:59
-
-
Save KristobalJunta/fcb39c97d028a2487120594f107a4425 to your computer and use it in GitHub Desktop.
A script to display current keyboard layout in i3status
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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