commit 00e8d6636fca93e02064604453ca14100a54f022
Author: Simon Watson <spw01@protonmail.com>
Date: Wed Nov 24 09:27:58 2021 -0500
Minor updates
diff --git a/bashrc/bashrc-all b/bashrc/bashrc-all
index f36d43f..5ebadb3 100644
--- a/bashrc/bashrc-all
+++ b/bashrc/bashrc-all
@@ -120,6 +120,10 @@ case $(hostname) in
alias ssh-old="ssh -oKexAlgorithms=+diffie-hellman-group1-sha1"
alias sleep-open="sudo zzz && slock"
+ alias ssh-aws="ssh -i .ssh/aws_key"
+
+ # Load non tracked aliases for work specific things
+ source ~/Work/secure_shell_aliases
echo "Loaded Void Work Config"
;;
diff --git a/lemonbar/swatson-casana/bar.sh b/lemonbar/swatson-casana/bar.sh
index cf5840a..61d2716 100755
--- a/lemonbar/swatson-casana/bar.sh
+++ b/lemonbar/swatson-casana/bar.sh
@@ -2,6 +2,16 @@
div="%{F#0092ff}<>%{F-}%{B-}"
+aws_vpn_status() {
+ INTERFACE_CHECK=$(ip a | grep tun0)
+ if [[ ! -z $INTERFACE_CHECK ]]; then
+ INTERFACE_VALUE=$(echo $INTERFACE_CHECK | tail -n1 | awk '{print $15}')
+ echo -n "AWS VPN IP: $INTERFACE_VALUE"
+ else
+ echo -n "AWS VPN Down"
+ fi
+}
+
Clock() {
DATETIME=$(date "+%a %b %d, %T")
@@ -94,6 +104,6 @@ soundState() {
while true; do
sleep 1
- echo "%{l} $(Clock) $div $(cpuTemp) $div $(loadAvg) $div $(wifiInfo) $div $(ethPort) $div $(diskFree) $div $(soundState) $div $(batteryInfo) $div "
+ echo "%{l} $(Clock) $div $(cpuTemp) $div $(loadAvg) $div $(wifiInfo) $div $(ethPort) $div $(diskFree) $div $(soundState) $div $(batteryInfo) $div $(aws_vpn_status)"
sleep 0.5
done