xeno/xorg/xinitrc
2011-07-24 23:07:57 +02:00

36 lines
722 B
Bash
Executable file

#!/bin/bash
WM='i3'
setxkbmap de neo
setxkbmap -option terminate:ctrl_alt_bksp
if [ -e /usr/bin/xset ]; then
xset +fp /usr/share/fonts/local
xset fp rehash
xset -b
xset dpms force on
xset s off
fi
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
feh --bg-scale ~/media/bilder/wallpaper/$(ls ~/media/bilder/wallpaper/ | sort --random-sort | head -1)
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