From ba13130b3cf4256bfef9b47f04da53c804e7a4f1 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Tue, 2 Mar 2010 01:34:29 +0100 Subject: xinitrc: added debug - with valgrind - to wm selection --- xinitrc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/xinitrc b/xinitrc index 9d58fc7..31730e5 100755 --- a/xinitrc +++ b/xinitrc @@ -4,7 +4,6 @@ # {{{ Environment settings -# export OOO_FORCE_DESKTOP="gnome" errorlog="${HOME}/.xsession-errors" gnupglog="${HOME}/.gnupg/gpg-agent.info" @@ -14,7 +13,7 @@ gnupglog="${HOME}/.gnupg/gpg-agent.info" # {{{ Log settings # # Always start X11 with a clean log file -if ( cp /dev/null "${errorlog}" ); then +if (cp /dev/null "${errorlog}"); then chmod 600 "${errorlog}" exec >"${errorlog}" 2>&1 break @@ -75,7 +74,7 @@ sudo /usr/bin/setkeycodes e034 151 ogg123 -q "${HOME}/.fvwm/sounds/Dream/Startup.ogg" & # Start the GnuPG agent and enable OpenSSH agent emulation -if ( pgrep -u "${USER}" gpg-agent ); then +if (pgrep -u "${USER}" gpg-agent); then eval `cat $gnupglog` eval `cut -d= -f1 $gnupglog | xargs echo export` else @@ -83,7 +82,7 @@ else fi # Start the GNU Emacs daemon -[[ -r "/tmp/emacs${UID}/server" ]] || emacs --daemon & +[[ ! -r "/tmp/emacs${UID}/server" ]] && emacs --daemon & # Xwrits reminds you to take wrist breaks and avoid RSI xwrits typetime=45 clock breakclock top ready-picture="${HOME}/.xwrits/ready.gif" \ @@ -106,6 +105,9 @@ case "$1" in kde) exec startkde ;; + debug) + exec valgrind "$2" + ;; *) exec awesome ;; -- cgit v1.2.3