Connect to VPN before starting i3
This commit is contained in:
parent
fe38d289bd
commit
bd176da680
2 changed files with 11 additions and 2 deletions
|
@ -98,7 +98,9 @@ pull_from_repos() {
|
||||||
}
|
}
|
||||||
|
|
||||||
hello() {
|
hello() {
|
||||||
sudo protonvpn c --cc NL
|
if command -v protonvpn >/dev/null 2>&1; then
|
||||||
|
sudo protonvpn c --cc NL
|
||||||
|
fi
|
||||||
system_update
|
system_update
|
||||||
|
|
||||||
echo -n "Do you want to pull from you git repos? [y/N] "
|
echo -n "Do you want to pull from you git repos? [y/N] "
|
||||||
|
@ -114,7 +116,10 @@ hello() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bye() {
|
bye() {
|
||||||
sudo protonvpn d && shutdown now
|
if command -v protonvpn >/dev/null 2>&1; then
|
||||||
|
sudo protonvpn d
|
||||||
|
fi
|
||||||
|
shutdown now
|
||||||
}
|
}
|
||||||
|
|
||||||
# Use python to make simple calculations, like 'calc 24/8'
|
# Use python to make simple calculations, like 'calc 24/8'
|
||||||
|
|
|
@ -42,4 +42,8 @@ if command -v numlockx >/dev/null 2>&1; then
|
||||||
numlockx &
|
numlockx &
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v protonvpn >/dev/null 2>&1; then
|
||||||
|
protonvpn c -f
|
||||||
|
fi
|
||||||
|
|
||||||
exec i3
|
exec i3
|
||||||
|
|
Loading…
Add table
Reference in a new issue