os/arch/.xprofile: fix running function
This commit is contained in:
parent
3778ef66c3
commit
c34880ccec
|
@ -3,7 +3,7 @@
|
||||||
export __GL_THREADED_OPTIMISATIONS=1
|
export __GL_THREADED_OPTIMISATIONS=1
|
||||||
|
|
||||||
# Maybe start this daemon
|
# Maybe start this daemon
|
||||||
running() { pgrep "$1" >/dev/null || "$@"; }
|
running() { pgrep "$1" >/dev/null; }
|
||||||
run() {
|
run() {
|
||||||
command -v "$1" >/dev/null || return
|
command -v "$1" >/dev/null || return
|
||||||
running "$1" || "$@"
|
running "$1" || "$@"
|
||||||
|
@ -34,8 +34,8 @@ run compton & # perdy effects + transparency
|
||||||
# non-essentials
|
# non-essentials
|
||||||
run mpd & # music server
|
run mpd & # music server
|
||||||
run redshift & # screen temperature based on time-of-day
|
run redshift & # screen temperature based on time-of-day
|
||||||
~/.bin/rsl.sh # resilio sync
|
run rslsync & # resilio sync
|
||||||
|
|
||||||
# key agents
|
# key agents
|
||||||
running ssh-agent || { ssh-agent -s | sed 's/^echo/#echo/' \> ~/.ssh/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; }
|
running gpg-agent || { gpg-agent --daemon | sed 's/^echo/#echo/' >~/.gnupg/agentenv; }
|
||||||
|
|
Loading…
Reference in a new issue