]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - xinitrc
xinitrc: Display reminders using notify.py.
[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 # Display reminders.
31 if [ -x /usr/bin/remind -a -f ~/.reminders ]; then
32     remind -z1 -k'.shell/bin/notify.py %s &' ~/.reminders &
33 fi
34
35 # Start XMonad.
36 xmonad
37
38 # vim: ft=sh