TheRepoClub-DotFiles/lemonbar/.local/bin/lemonbar/lemonbar_keyboard
2021-12-31 05:21:12 +00:00

13 lines
259 B
Bash
Executable File

#!/usr/bin/env bash
keyboard () {
icon="  "
keyboard="$(setxkbmap -query | awk '/layout/{print $2}')"
keyboard=" $keyboard"
printf "%s%s\n" "%{F#1e222a}%{B#6D8895}$icon%{F-}%{B-}" "%{F#1e222a}%{B#C4C7C5}$keyboard %{F-}%{B-}"
}
keyboard