xinitrc: detect university-computers instead of own laptop

This commit is contained in:
Thomas Preisner 2016-12-09 18:03:49 +01:00
parent 5cc60b63ca
commit 8e2cd2da04

15
xinitrc
View file

@ -1,8 +1,13 @@
#! /bin/bash
if [ "$HOSTNAME" = warthog ]; then
xrdb -load -DHOST_WARTHOG ~/.Xresources
else
xrdb -load ~/.Xresources
case "$HOSTNAME" in
fau*)
# detects fau-machine and defines variable for Xresources
xrdb -load -DHOST_FAUCIP ~/.Xresources
setxkbmap us -variant altgr-intl -option ctr:nocaps
fi
;;
*)
# other hosts cann use SRVR_host
xrdb -load ~/.Xresources
;;
esac