summaryrefslogtreecommitdiff
path: root/.local/bin/layouthandler
blob: c1e850a2dd5263491c16e4bfda00f218c6f9fadc (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

layout="$(setxkbmap -query | awk '$1 ~ /layout/ { print $2 }"

case $layout in
  en_US)
    setxkbmap -layout se ;;
  *)
    setxkbmap -layout en_US
esac