#!/bin/bash WM='fvwm2' WALLPAPER='media/bilder/wallpaper/wood_6.jpg' setxkbmap de neo xset +fp /usr/share/fonts/local xset fp rehash if [ -e /usr/bin/xrandr ]; then if [ $(hostname) = "galahad" ]; then if [ $(xrandr -q | grep VGA1 | awk '{print $2}') = "disconnected" ]; then xrandr --output LVDS1 --auto --output VGA1 --off else xrandr --output LVDS1 --off --output VGA1 --auto fi fi fi if [ -e "$WALLPAPER" ] && [ -e /usr/bin/feh ]; then feh --bg-scale $WALLPAPER fi if [ -e /usr/bin/xscreensaver ]; then xscreensaver -no-splash & fi if [ -e /usr/bin/ssh-agent ]; then exec ssh-agent $WM else exec $WM fi