diff options
author | Joe <rrbo@proton.me> | 2023-03-09 10:40:34 +0100 |
---|---|---|
committer | Joe <rrbo@proton.me> | 2023-03-09 10:40:34 +0100 |
commit | 38d4ccdce9c08aedb2d80e23ca048d10f09945ac (patch) | |
tree | d7b226673d08699dd657232ffea7b089fa6588c6 /.config | |
parent | up (diff) | |
download | dotfiles-bsd-38d4ccdce9c08aedb2d80e23ca048d10f09945ac.tar.gz dotfiles-bsd-38d4ccdce9c08aedb2d80e23ca048d10f09945ac.tar.bz2 dotfiles-bsd-38d4ccdce9c08aedb2d80e23ca048d10f09945ac.tar.xz dotfiles-bsd-38d4ccdce9c08aedb2d80e23ca048d10f09945ac.tar.zst dotfiles-bsd-38d4ccdce9c08aedb2d80e23ca048d10f09945ac.zip |
MARS
Diffstat (limited to '')
-rwxr-xr-x | .config/openbox/autostart | 7 | ||||
-rw-r--r-- | .config/zsh/alias.zsh | 2 |
2 files changed, 7 insertions, 2 deletions
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 & } diff --git a/.config/zsh/alias.zsh b/.config/zsh/alias.zsh index 30537ed..35bb513 100644 --- a/.config/zsh/alias.zsh +++ b/.config/zsh/alias.zsh @@ -210,7 +210,7 @@ update() { nix-channel --update nix-env -u ;; - fbsd-tp) + mars) doas pkg update && doas pkg upgrade ;; esac |