From 38d4ccdce9c08aedb2d80e23ca048d10f09945ac Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 9 Mar 2023 10:40:34 +0100 Subject: MARS --- .config/openbox/autostart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '.config/openbox') diff --git a/.config/openbox/autostart b/.config/openbox/autostart index f8e05ef..0710086 100755 --- a/.config/openbox/autostart +++ b/.config/openbox/autostart @@ -24,21 +24,26 @@ case $(hostname -s) in mpd="mpd" xscr="xscreensaver --no-splash" sleep="sleep 1" + ping="ping -c1 -w1 9.9.9.9 >/dev/null 2>&1" ;; po-rbo) icon=" " mpd="mpd" xscr="xscreensaver" sleep="sleep 1" + ping="ping -c1 -w1 9.9.9.9 >/dev/null 2>&1" ;; - fbsd-tp) + mars) icon=" " mpd="musicpd" xscr="xscreensaver --no-splash" sleep="gsleep 1" + ping="ping -c1 -t1 9.9.9.9 >/dev/null 2>&1" ;; esac +$ping && git --git-dir="$HOME"/docs/dotfiles-bsd --work-tree="$HOME" pull + startif() { pgrep "$(basename "$1")" >/dev/null || "$@" >/dev/null 2>&1 & } -- cgit v1.2.3