#!/bin/bash
#
# name		: $RCSfile: altgr-weur.sh,v $ $Revision: 1.1 $
# issued	: $Date: 2020/10/25 08:46:30 $
# description	: Install a keyboard layout
#
# id		: $Id: altgr-weur.sh,v 1.1 2020/10/25 08:46:30 adriaan Exp adriaan $
#

mkdir -p $HOME/.config/xkb/symbols/
wget -q -O $HOME/.config/xkb/symbols/altgr-weur https://altgr-weur.eu/altgr-weur
wget -q -O $HOME/.config/xkb/map https://altgr-weur.eu/map
if [ -e $HOME/.config/xkb/map -a -e $HOME/.config/xkb/symbols/altgr-weur ]
then
	xkbcomp -w 0 -I$HOME/.config/xkb $HOME/.config/xkb/map $DISPLAY && echo "altgr-weur activated for this session"
else
	echo "The download did not succeed - try the manual method to find out where it went wrong"
fi

# vim:set textwidth=0 ft=sh:
