1
0
Fork 0
dotfiles/.local/bin/statusbar/sb-xkbmap

6 lines
221 B
Plaintext
Raw Normal View History

2023-04-12 11:37:10 +02:00
#!/bin/sh
2023-02-06 10:27:26 +01:00
# pidof -x sbd-xkbmap >/dev/null 2>&1 || sbd-xkbmap >/dev/null 2>&1 &
big="\033[11m"
reset="\033[0m"
printf "%b" "$big$reset $(setxkbmap -query | grep -oP '(layout|variant):\s*\K\w+' | sed ':a;N;s/\n/:/')\n"