14 lines
511 B
Bash
Executable File
14 lines
511 B
Bash
Executable File
#!/bin/sh -e
|
|
# Keeps the Internet at bay
|
|
if test -e "$JOURNAL"; then
|
|
echo "What do you want to do? Check your journal!" >&2
|
|
while test $(echo "$intention" | wc -c) -lt 10
|
|
do read intention
|
|
done
|
|
jrnl intentions "$intention"
|
|
apprise $(pass service/apprise/intentions) -t 'janeks intention' -b "$intention"
|
|
sudo nft flush chain inet filter outall
|
|
sudo nft add rule inet filter outall meta hour "$(date +%H:%M)"-"$(date +%H:%M --date="${1:-10}min")" accept
|
|
#expr \( "$1" \> 40 \) \* 10 \| "$1"
|
|
fi
|