From: Samir Benmendil Date: Fri, 2 Mar 2018 09:35:55 +0000 (+0000) Subject: xinit: log xinit output X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/981ca0de82780d716ec7376a8abfa7279728ffa6 xinit: log xinit output --- diff --git a/xinitrc b/xinitrc index f79ee4a..ec73319 100644 --- a/xinitrc +++ b/xinitrc @@ -1,11 +1,17 @@ #!/bin/sh +logfile=$XDG_DATA_HOME/xorg/xinit.log userresources=$HOME/.Xresources usermodmap=$HOME/.Xmodmap userprofile=$HOME/.xprofile sysresources=/etc/X11/xinit/.Xresources sysmodmap=/etc/X11/xinit/.Xmodmap +# redirect all further output +exec 2>&1 >>"$logfile" + +printf "\n%s Reading '~/.xinitrc'\n" $(date --iso-8601=minutes) + # merge in defaults and keymaps if [ -f $sysresources ]; then xrdb -merge $sysresources @@ -35,4 +41,5 @@ if [ -f "$userprofile" ]; then source "$userprofile" fi +echo "Start Awesome" exec awesome