diff options
-rwxr-xr-x | xinitrc | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 ;; |