#!/bin/sh
# kbswitch by Frank "yogan" Blendinger (fb@intoxicatedmind.net)
# Switches the current keyboard layout in X and displays it via OSD
# Usage: kbswitch de / kbswitch us / kbswitch dvorak / ...

FONT=-xos4-terminus-bold-r-normal-*-24-*-*-*-c-*-paratype-pt154

setxkbmap $1
xmodmap -e "keysym Super_R = SunCompose"
echo "Keyboard Layout: $1" | osd_cat -p middle -A center -f "$FONT" -c "#e8f7fc" -d 3 -s 3 -O 1

