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