diff --git a/dotfiles/shell/aliases b/dotfiles/shell/aliases index 3a2ef31..342e3bf 100644 --- a/dotfiles/shell/aliases +++ b/dotfiles/shell/aliases @@ -98,7 +98,9 @@ pull_from_repos() { } hello() { - sudo protonvpn c --cc NL + if command -v protonvpn >/dev/null 2>&1; then + sudo protonvpn c --cc NL + fi system_update echo -n "Do you want to pull from you git repos? [y/N] " @@ -114,7 +116,10 @@ hello() { } 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' diff --git a/dotfiles/xinitrc b/dotfiles/xinitrc index b657a1d..eb49a53 100644 --- a/dotfiles/xinitrc +++ b/dotfiles/xinitrc @@ -42,4 +42,8 @@ if command -v numlockx >/dev/null 2>&1; then numlockx & fi +if command -v protonvpn >/dev/null 2>&1; then + protonvpn c -f +fi + exec i3