+ save_background_pid
+fi
+
+# Set color temperature of display according to time of day.
+if installed redshift; then
+ redshift -l 49.9:10.9 -t 5500:4500 >/dev/null &
+fi
+
+# Automatically lock the screen after x minutes of inactivity if `xautolock`
+# is available. Warn if locker wasn't found.
+if installed xautolock; then
+ if installed "$screen_locker"; then
+ xautolock -secure -time "$screen_lock_time" -locker "$screen_locker" &
+ else
+ error "Locker '$screen_locker' not installed. Auto lock won't work!"
+ fi
+elif test -n "$screen_lock_force"; then
+ error "'xautolock' not found. Auto lock won't work!"
+fi
+
+
+# XMonad doesn't start a terminal emulator on its own, start one when I login.
+(urxvt || rxvt || xterm) &
+
+# Start window manager.
+if installed herbstluftwm; then
+ herbstluftwm --locked
+elif installed xmonad; then
+ xmonad
+elif installed stumpwm; then
+ stumpwm
+else
+ error 'no window manager found (sleeping for 3600 seconds)'
+ sleep 3600