From 0b710bd5a37977ae7d1ed2b305259d3a0a76894b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 26 Apr 2017 18:53:44 -0400 Subject: [PATCH] os/+arch/.xprofile: make pgrep checks exact --- os/+arch/.xprofile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/os/+arch/.xprofile b/os/+arch/.xprofile index 2ea5bd21..fdf1fd27 100644 --- a/os/+arch/.xprofile +++ b/os/+arch/.xprofile @@ -3,7 +3,7 @@ export __GL_THREADED_OPTIMISATIONS=1 # Maybe start this daemon -running() { pgrep "$1" >/dev/null; } +running() { pgrep -x "$1" >/dev/null; } run() { command -v "$1" >/dev/null || return running "$1" || "$@" @@ -15,7 +15,7 @@ run() { # 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 - pgrep sxhkd >/dev/null || termite & + pgrep -x sxhkd >/dev/null || termite & } & # mouse acceleration @@ -32,9 +32,9 @@ run dunst & # notifications run compton & # perdy effects + transparency # non-essentials -run mpd & # music server -run redshift & # screen temperature based on time-of-day -run rslsync & # resilio sync +run mpd & # music server +run redshift & # screen temperature based on time-of-day +run rslsync & # resilio sync # key agents running ssh-agent || { ssh-agent -s | sed 's/^echo/#echo/' >~/.ssh/agentenv; }