#!/bin/bash
profile="$(wifish list 2>&1 | sed '1,/SSID/d' | sed 's/"\([^"]*\)".*/\1/' | dmenu)"
[ -z "$profile" ] && wifish connect "$profile"