From b14c6240de3e5dc522f1f6d835c3f0b05b7ea1d1 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Tue, 8 Jan 2019 11:44:33 -0500 Subject: [PATCH] Remove ssh_helper --- i3/.config/i3/run.sh | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/i3/.config/i3/run.sh b/i3/.config/i3/run.sh index 1c0680e..3f07266 100755 --- a/i3/.config/i3/run.sh +++ b/i3/.config/i3/run.sh @@ -174,32 +174,3 @@ if [ "$ARG" = "clip" ]; then gpaste-client select "$INDEX" fi fi -if [ "$ARG" = "ssh_helper" ]; then - if [ -f /proc/net/wireless ]; then - WIRELESS_DEV="$(perl -ne 'print if s/(\w+):.*/\1/' /dev/null; then - SSID="$(iwgetid wlan0 -r)" - elif command -v nmcli >/dev/null; then - SSID="$(nmcli -t -f active,ssid dev wifi | perl -ne 'print if s/yes://;')" - elif command -v termux-wifi-connectioninfo >/dev/null; then - # Android device (termux) - SSID="$(termux-wifi-connectioninfo | perl -ne 'print if s/^\s*"ssid": "(.+)",$/\1/')" - fi - case "$(hostname)" in - sgen|egen|runner2) - SSID=ATTskUYuI2 - ;; - esac - logger "Found SSID for $(hostname): $SSID" - case "$SSID" in - ATTskUYuI2) - logger "ssh -q -W ${1} 192.168.1.200" - ssh -q -W "${1}" 192.168.1.200 - ;; - *) - logger "ssh -q -W ${1} -p 23 austenwares.com" - ssh -q -W "${1}" -p 23 austenwares.com - ;; - esac -fi