dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit 96d4886727677467fe3320c00377fcefbac9b528
parent 038da211470672c826e2b50a2ef532e3304d210d
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Sun,  3 Jun 2018 13:32:09 -0400

Make allowances for BSD-style 'ps'

Diffstat:
M.local/bin/my | 2+-
M.xsession | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.local/bin/my b/.local/bin/my @@ -22,7 +22,7 @@ __getlocker() { for locker in light-locker cinnamon-screensaver gnome-screensaver xscreensaver do - if type $locker-command > /dev/null 2>&1 && ps -U $LOGNAME -o cmd= | grep ^[^_[:space:]]*$locker > /dev/null 2>&1 + if type $locker-command > /dev/null 2>&1 && ps -U $LOGNAME -o command= | grep ^[^_[:space:]]*$locker > /dev/null 2>&1 then echo $locker exit 0 diff --git a/.xsession b/.xsession @@ -3,9 +3,9 @@ # ~/.xsession # echo "Running $HOME/.xsession as PID $$" >&2 +[ -r "$HOME/.xsession.local" ] && . "$HOME/.xsession.local" date +'%m/%d/%Y %H:%M:%S' >&2 env >&2 -[ -r "$HOME/.xsession.local" ] && . "$HOME/.xsession.local" __autostart() { @@ -18,7 +18,7 @@ __autostart() AUTOSTART_CMD="fbautostart" fi - until ps -u $LOGNAME -U $LOGNAME | grep $1 > /dev/null 2>&1 + until ps -U $LOGNAME | grep $1 > /dev/null 2>&1 do sleep 1 done