Sfoglia il codice sorgente

~/.bin/xkbswap: Swap around the current keymap (de, us).

I never use it myself, it's bound to `Mod4+l`.
Lucas Stadler 13 anni fa
parent
commit
558caa48b0
1 ha cambiato i file con 11 aggiunte e 0 eliminazioni
  1. 11 0
      .bin/xkbswap

+ 11 - 0
.bin/xkbswap

1
#!/bin/sh
2
3
# Swap the current keyboard layout (from de to us and back again).
4
5
if setxkbmap -query | grep us &> /dev/null; then
6
	lang=de
7
else
8
	lang=us
9
fi
10
11
setxkbmap $lang