#!/bin/sh

# TODO Use `pass` to get SSID and passwords
WIFI_SSID=Home
WIFI_PASS=Home

case "$(uname -s)" in
    Linux) iwctl wlan0 connect "${WIFI_SSID}" "${WIFI_PASS}" ;;
    Darwin) networksetup -setairportnetwork en0 "${WIFI_SSID}" "${WIFI_PASS}" ;;
    Windows_NT) netsh wlan connect "${WIFI_SSID}" "${WIFI_PASS}" ;;
esac
