how to use laptop as screen for raspberry pi 4 with hdmi cable code example
Example: how to connect raspberry pi to laptop using hdmi
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=PK #Your country code
network={
ssid="My_WiFi" #Your WiFi Name
psk="123456789" #Your WiFi password
key_mgmt=WPA-PSK
}