bin: develop netkeeper
This commit is contained in:
parent
15199938dc
commit
53a6aabc69
|
@ -130,9 +130,5 @@ if ! test -d "$mx"
|
||||||
then mkdir "$mx" && ln -sv -t "$mx" ${XDG_DATA_HOME:-$HOME/.local/share}/mixxx/* ${XDG_CONFIG_HOME:-$HOME/.config}/mixxx/*
|
then mkdir "$mx" && ln -sv -t "$mx" ${XDG_DATA_HOME:-$HOME/.local/share}/mixxx/* ${XDG_CONFIG_HOME:-$HOME/.config}/mixxx/*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#subhighlight "Block internet at night & on weekdays in the morning to force focus"
|
|
||||||
#walli 22 --save
|
|
||||||
# TODO netkeeper
|
|
||||||
|
|
||||||
subhighlight "Setup kakoune plugin loader"
|
subhighlight "Setup kakoune plugin loader"
|
||||||
cloneshallow plug.kak robertmeta "${XDG_CONFIG_HOME:-$HOME/.config}/kak/plugins/plug.kak"
|
cloneshallow plug.kak robertmeta "${XDG_CONFIG_HOME:-$HOME/.config}/kak/plugins/plug.kak"
|
||||||
|
|
|
@ -1,8 +1,3 @@
|
||||||
if test -z "$DISPLAY" && test "$XDG_VTNR" -eq 1 && test -e "$JOURNAL"; then
|
if test -z "$DISPLAY" && test "$XDG_VTNR" -eq 1
|
||||||
echo "What do you want to do? Check your planner!"
|
then exec startx
|
||||||
while test $(echo "$intention" | wc -c) -lt 6
|
|
||||||
do read intention
|
|
||||||
done
|
|
||||||
jrnl intentions "$intention"
|
|
||||||
exec startx
|
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
# Keeps the Internet at bay
|
# Keeps the Internet at bay
|
||||||
# TODO import nftables from iptables
|
if test -e "$JOURNAL"; then
|
||||||
|
echo "What do you want to do? Check your journal!"
|
||||||
|
while test $(echo "$intention" | wc -c) -lt 10
|
||||||
|
do read intention
|
||||||
|
done
|
||||||
|
jrnl intentions "$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
|
||||||
|
|
Loading…
Reference in New Issue