#!/bin/sh

# nextkb, 0.5
# (c) 2002 Jan ONDREJ (SAL) <ondrejj@salstar.sk>
# This program is licensed under GPL.

KB1=us
KB2=sk_qwerty

KB=`cat ~/.xkb`

if [ "$KB" = "$KB2" ]; then
  KB="$KB1"
else
  KB="$KB2"
fi

if [ "$1" = "-init" ]; then
  KB="$KB1"
  exit 0
fi

setxkbmap "$KB"
echo "$KB" > ~/.xkb
