summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2010-03-02 00:34:29 (GMT)
committerAdrian C. (anrxc) <anrxc@sysphere.org>2010-03-02 00:35:54 (GMT)
commitba13130b3cf4256bfef9b47f04da53c804e7a4f1 (patch)
treef3ac1f8f171d00604bec504824bee3fc39f54245
parent5f35d2123c364c90a9a7f0305c8089b8e2189192 (diff)
downloaddotfiles-ba13130b3cf4256bfef9b47f04da53c804e7a4f1.tar.xz
xinitrc: added debug - with valgrind - to wm selection
-rwxr-xr-xxinitrc10
1 files 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
;;