There more than one ways to set up your wifi on your linux system, and almost all of them would require you to basically install a network manager of some sort, to handle everything for you. But here i am going to show you a mininal way to set up your own wifi network manager.
Dependencies:
- wpa_supplicant
- A dhcp client ( e.g. dhclient or dhcpcd )
- iproute2
- libnotify ( optional )