os/arch/.xprofile: fix running function

This commit is contained in:
Henrik Lissner 2017-02-28 19:03:35 -05:00
parent 3778ef66c3
commit c34880ccec

View file

@ -3,7 +3,7 @@
export __GL_THREADED_OPTIMISATIONS=1
# Maybe start this daemon
running() { pgrep "$1" >/dev/null || "$@"; }
running() { pgrep "$1" >/dev/null; }
run() {
command -v "$1" >/dev/null || return
running "$1" || "$@"
@ -34,8 +34,8 @@ run compton & # perdy effects + transparency
# non-essentials
run mpd & # music server
run redshift & # screen temperature based on time-of-day
~/.bin/rsl.sh # resilio sync
run rslsync & # resilio sync
# key agents
running ssh-agent || { ssh-agent -s | sed 's/^echo/#echo/' \> ~/.ssh/agentenv; }
running gpg-agent || { gpg-agent --daemon | sed 's/^echo/#echo/' \> ~/.gnupg/agentenv; }
running ssh-agent || { ssh-agent -s | sed 's/^echo/#echo/' >~/.ssh/agentenv; }
running gpg-agent || { gpg-agent --daemon | sed 's/^echo/#echo/' >~/.gnupg/agentenv; }