summaryrefslogtreecommitdiffstats
path: root/xorg/xinitrc
diff options
context:
space:
mode:
authorStefan Ritter <xeno@thehappy.de>2005-04-19 04:08:49 +0200
committerStefan Ritter <xeno@thehappy.de>2005-04-19 04:08:49 +0200
commit80177419d83eb40abcd38e5a733105a29b8bab55 (patch)
tree2d0f819530f49ab57f95388ae5a8256b6c7a5be2 /xorg/xinitrc
parent4a7540d734b604ae5bba50c9d5a902dd212711f0 (diff)
xinitrc update
Diffstat (limited to '')
-rwxr-xr-xxorg/xinitrc22
1 files changed, 18 insertions, 4 deletions
diff --git a/xorg/xinitrc b/xorg/xinitrc
index e65fb7d..c9a4cf2 100755
--- a/xorg/xinitrc
+++ b/xorg/xinitrc
@@ -1,10 +1,24 @@
#!/bin/bash
+WM='fvwm2'
+WALLPAPER='media/bilder/wallpaper/wood_3.png'
+
setxkbmap de neo
xset +fp /usr/share/fonts/local
xset fp rehash
-xrandr --output LVDS1 --off --output VGA1 --auto
-feh --bg-scale media/bilder/wallpaper/wood_3.png
-xscreensaver -no-splash &
-exec ssh-agent i3
+if [ -e /usr/bin/xrandr ]; then
+ if [ $(hostname) = "galahad" ]; then
+ xrandr --output LVDS1 --off --output VGA1 --auto
+ fi
+fi
+
+if [ -e "$WALLPAPER" -a /usr/bin/feh]; then
+ feh --bg-scale $WALLPAPER
+fi
+
+if [ -e /usr/bin/xscreensaver ]; then
+ xscreensaver -no-splash &
+fi
+
+exec ssh-agent $WM