X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=xinitrc;h=c1a96fb7853f16b771efea8ab10c414f20ee5775;hb=e81089931401a54fba039227bee2cb84fd1c9306;hp=e434cbacb37e620c134ab450106ea8fa988f8cb1;hpb=b69168d78941ffb5e5a16504a72cb1fa0a2d69ab;p=config%2Fdotfiles.git diff --git a/xinitrc b/xinitrc index e434cba..c1a96fb 100755 --- a/xinitrc +++ b/xinitrc @@ -2,7 +2,7 @@ # startx configuration file. -# Copyright (C) 2011-2012 Simon Ruderich +# Copyright (C) 2011-2013 Simon Ruderich # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -55,11 +55,15 @@ if test -f "$HOME/.xinitrc.local"; then fi # Change the background if available. -if test -f "$HOME/.background" && test -n $set_background; then +if test -f "$HOME/.background" && test -n "$set_background"; then if test -x /usr/bin/hsetroot; then hsetroot -full "$HOME/.background" elif test -x /usr/bin/feh; then feh --bg-scale "$HOME/.background" + # Remove the unnecessary ~/.fehbg file created by `feh`. I don't want + # to restore the background, I just run `feh` on each startx run. + # --no-fehbg is only available in recent feh releases. + rm -f "$HOME/.fehbg" fi fi @@ -68,6 +72,10 @@ if test -x /usr/bin/remind && test -f "$HOME/.reminders"; then remind -z1 -k'.shell/bin/notify.py %s &' "$HOME/.reminders" & fi + +# XMonad doesn't start a shell on its own, start one when I login. +(urxvt || rxvt || xterm) & + # Start XMonad. xmonad