Browse Source

Added openvpn helpers

master
Micah Halter 5 months ago
parent
commit
fbffb3a95e

+ 1
- 0
CHANGELOG.md View File

@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Added

- Added openvpn helper scripts
- Added vpn to statusbar
- Added freenode irc to Weechat
- `transfer.sh` alias now creates qr code if `qrencode` is installed

+ 2
- 0
Makefile View File

@@ -91,6 +91,7 @@ arch: pacman
ntp \
offlineimap \
openssh \
openvpn \
pandoc \
pandoc-citeproc \
pass \
@@ -175,6 +176,7 @@ aur: yay
ncpamixer \
nerd-fonts-inconsolata \
networkmanager-dmenu-git \
openvpn-update-systemd-resolved \
qutebrowser-git \
rtv \
sc-im \

+ 4
- 0
i3/.config/i3/config View File

@@ -146,6 +146,7 @@ exec_always --no-startup-id $HOME/.config/wpg/wp_init.sh
# application placements
assign [class="Google-chrome"] $workspace1
assign [class="Firefox"] $workspace1
assign [class="Brave"] $workspace1
assign [class="qutebrowser"] $workspace1
assign [class="Skype"] $workspace3
assign [class="Telegram"] $workspace3
@@ -472,6 +473,9 @@ bindsym $mod+Scroll_Lock exec --no-startup-id lock
#bindsym $mod+Pause
#bindsym $mod+Shift+Pause

bindsym $mod+Home exec --no-startup-id toggleservice micahvpn
#bindsym $mod+Shift+Home
#
bindsym $mod+Insert exec --no-startup-id bash screencast
#bindsym $mod+Shift+Insert


+ 12
- 0
openvpn/.config/systemd/user/micahvpn.service View File

@@ -0,0 +1,12 @@
[Unit]
Description=mehalter.com OpenVPN
Wants=network-online.target

[Service]
Type=simple
Environment=DISPLAY=:0
ExecStart=/home/micah/.config/Scripts/gohome
ExecStop=sudo killall openvpn

[Install]
WantedBy=default.target

+ 3
- 0
scripts/.config/Scripts/gohome View File

@@ -0,0 +1,3 @@
#!/bin/bash

pass OpenVpn/micah | sudo openvpn --config ~/.openvpn/micah.ovpn --askpass /dev/stdin

+ 7
- 0
scripts/.config/Scripts/toggleservice View File

@@ -0,0 +1,7 @@
#!/bin/bash

service=$1

systemctl --user is-active $service 2&> /dev/null && systemctl --user stop $service && notify-send "$service off" && exit

systemctl --user start $service && notify-send "$service on"

+ 0
- 1
zsh/.zsh_aliases View File

@@ -188,7 +188,6 @@ gcclm() {
}

# unused aliases
alias gohome='sudo openvpn --config $HOME/.openvpn/micah.ovpn'
#alias gohome='sudo openvpn --script-security 2 --config $HOME/.openvpn/halter_home.ovpn'
#alias dataBackup='$HOME/backupScript/backup.sh'
#alias dataBackupUmount='$HOME/backupScript/backup.sh && sleep 5 && sudo umount /dev/sdd1'

Loading…
Cancel
Save