simplify service definitions
This commit is contained in:
parent
3baff6a2ad
commit
83204601bd
6 changed files with 42 additions and 47 deletions
|
@ -1,11 +0,0 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
# check for internet connection
|
||||
ip route ls | grep -q '.'
|
||||
|
||||
# check if the gpg-agent is running
|
||||
pgrep gpg-agent > /dev/null
|
||||
|
||||
notmuch new --quiet 2>&1
|
||||
|
||||
exec sleep 1m
|
|
@ -1,9 +1,17 @@
|
|||
#!/bin/sh
|
||||
exec env \
|
||||
HOME="${HOME:-/home/noctua}" \
|
||||
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-/home/noctua/.config}" \
|
||||
LC_ALL="en_US.utf-8" \
|
||||
LANG="en_US.utf-8" \
|
||||
PATH="/usr/local/bin:$HOME/.local/bin:$PATH" \
|
||||
DISPLAY="${DISPLAY:-:0}" \
|
||||
./notmuch
|
||||
export USER="$(whoami)"
|
||||
export HOME=/home/"$USER"
|
||||
export DISPLAY=":0"
|
||||
. "$HOME"/.profile
|
||||
|
||||
set -e
|
||||
|
||||
# check for internet connection
|
||||
ip route ls | grep -q '.'
|
||||
|
||||
# check if the gpg-agent is running
|
||||
pgrep gpg-agent > /dev/null
|
||||
|
||||
notmuch new --quiet 2>&1
|
||||
|
||||
exec sleep 1m
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue