os/+arch/.xprofile: make pgrep checks exact
This commit is contained in:
parent
aeec9b7ed3
commit
0b710bd5a3
|
@ -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 -x "$1" >/dev/null; }
|
||||||
run() {
|
run() {
|
||||||
command -v "$1" >/dev/null || return
|
command -v "$1" >/dev/null || return
|
||||||
running "$1" || "$@"
|
running "$1" || "$@"
|
||||||
|
@ -15,7 +15,7 @@ run() {
|
||||||
|
|
||||||
# If sxhkd isn't running by now something is wrong and we're stuck, so open
|
# If sxhkd isn't running by now something is wrong and we're stuck, so open
|
||||||
# a terminal so I can do something about it
|
# a terminal so I can do something about it
|
||||||
pgrep sxhkd >/dev/null || termite &
|
pgrep -x sxhkd >/dev/null || termite &
|
||||||
} &
|
} &
|
||||||
|
|
||||||
# mouse acceleration
|
# mouse acceleration
|
||||||
|
@ -32,9 +32,9 @@ run dunst & # notifications
|
||||||
run compton & # perdy effects + transparency
|
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
|
||||||
run rslsync & # 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; }
|
||||||
|
|
Loading…
Reference in a new issue