diff options
author | Roger Gonzalez <roger@rogs.me> | 2020-08-24 11:27:01 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2020-08-24 11:27:01 -0300 |
commit | 694384e0e7165b358cd0a7b421df83e6ec29f272 (patch) | |
tree | 1e2c50b67514349b3ee0bdc67e24e50f171ace94 /.config/polybar/keyboard_lang.sh | |
parent | 76b48e4389f473862ec5f631e64f3c8befd5cd21 (diff) |
Added emojis to polybar, compressed information a bit
Diffstat (limited to '.config/polybar/keyboard_lang.sh')
-rwxr-xr-x | .config/polybar/keyboard_lang.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.config/polybar/keyboard_lang.sh b/.config/polybar/keyboard_lang.sh new file mode 100755 index 00000000..00288f1b --- /dev/null +++ b/.config/polybar/keyboard_lang.sh @@ -0,0 +1,10 @@ +#!/bin/bash +set -euo pipefail + +LANG=$(setxkbmap -query | grep layout | awk -F ' ' '{print $2}') + +if [ "$LANG" = 'us' ]; then + echo "%{T5}%{T-}" +else + echo "%{T5}%{T-}" +fi |