From 8e2cd2da0449fb3dcdb1356999d131e036256c91 Mon Sep 17 00:00:00 2001 From: Thomas Preisner Date: Fri, 9 Dec 2016 18:03:49 +0100 Subject: [PATCH] xinitrc: detect university-computers instead of own laptop --- xinitrc | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/xinitrc b/xinitrc index 80365c4..7fd5e3f 100755 --- a/xinitrc +++ b/xinitrc @@ -1,8 +1,13 @@ #! /bin/bash -if [ "$HOSTNAME" = warthog ]; then - xrdb -load -DHOST_WARTHOG ~/.Xresources -else - xrdb -load ~/.Xresources - setxkbmap us -variant altgr-intl -option ctr:nocaps -fi +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 + ;; + *) + # other hosts cann use SRVR_host + xrdb -load ~/.Xresources + ;; +esac