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

4 lines
192 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 &
2023-04-12 11:37:10 +02:00
printf "\e[11m\e[10m %s\n" "$(setxkbmap -query | grep -oP '(layout|variant):\s*\K\w+' | sed ':a;N;s/\n/:/')"