summaryrefslogtreecommitdiff
path: root/.config/polybar/keyboard_lang.sh
blob: 00288f1b3b872f9d6fcde1798a9fc4410da4b630 (plain)
1
2
3
4
5
6
7
8
9
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