]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - xinitrc
xinitrc: Fix indentation.
[config/dotfiles.git] / xinitrc
1 #!/bin/sh
2
3 # startx configuration file.
4
5
6 # Use a black background for the root window.
7 xsetroot -solid black
8
9 # Force English keyboard layout.
10 if [ -x /usr/bin/setxkbmap ]; then
11     setxkbmap us
12 fi
13
14 # Use my X11 key bindings.
15 xmodmap ~/.xmodmaprc
16
17 # Change the background if available.
18 if [ -f ~/.background ]; then
19     # But not on slow machines in the university.
20     HOSTNAME=`hostname`
21     if [ "x`echo $HOSTNAME | grep faui0sr`" = x ]; then
22         if [ -x /usr/bin/hsetroot ]; then
23             hsetroot -full ~/.background
24         elif [ -x /usr/bin/feh ]; then
25             feh --bg-scale ~/.background
26         fi
27     fi
28 fi
29
30 # Start XMonad.
31 xmonad
32
33 # vim: ft=sh